$OpenBSD: patch-pf_constants_py,v 1.2 2018/06/15 06:36:30 jasper Exp $

ImportError: cannot import name 'maxint'

Index: pf/constants.py
--- pf/constants.py.orig
+++ pf/constants.py
@@ -1,7 +1,9 @@
 """Export constants shared by all classes of the module."""
 
-from sys import maxint
+import six
 
+if six.PY2:
+    from sys import maxint
 
 # Actions (from /usr/include/net/pfvar.h)
 PF_PASS                 = 0
