pypolicyd-spf/pypolicy-spf-1.3.2-python2.patch
Silvan Calarco 757869be54 update to 1.3.2
patch for use with python-ipaddress with python2 [release 1.3.2-1mamba;Thu Dec 10 2015]
2024-01-06 10:39:12 +01:00

13 lines
415 B
Diff

diff -Nru pypolicyd-spf-1.3.2.orig/policyd-spf pypolicyd-spf-1.3.2/policyd-spf
--- pypolicyd-spf-1.3.2.orig/policyd-spf 2015-08-13 04:45:08.000000000 +0200
+++ pypolicyd-spf-1.3.2/policyd-spf 2015-12-10 13:43:29.323754410 +0100
@@ -39,6 +39,8 @@
import policydspfsupp
try:
import ipaddress
+ if bytes is str:
+ from ipaddress import Bytes
except ImportError:
import ipaddr as ipaddress
try: