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: