openbsd-ports/mail/py-policyd-spf/patches/patch-policyd-spf
2022-03-11 19:34:31 +00:00

16 lines
431 B
Plaintext

Pretend string to be unicode,
fixes compatibility with python 2.7
Index: policyd-spf
--- policyd-spf.orig
+++ policyd-spf
@@ -52,6 +52,8 @@ policydspfsupp._setExceptHook()
#############################################
def _cidrmatch(ip, netwrk):
"""Match connect IP against a CIDR network of other IP addresses."""
+ netwrk = unicode(netwrk)
+ ip = unicode(ip)
try:
address = ipaddress.ip_address(ip)