Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 410816 Details for
Bug 559366
dev-python/pyspf: incorrect usage of ipaddres/ipaddr
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ipaddress.patch
ipaddress.patch (text/plain), 972 bytes, created by
Robert Trace
on 2015-09-02 01:25:26 UTC
(
hide
)
Description:
ipaddress.patch
Filename:
MIME Type:
Creator:
Robert Trace
Created:
2015-09-02 01:25:26 UTC
Size:
972 bytes
patch
obsolete
>diff -Naur pyspf-2.0.11-orig/spf.py pyspf-2.0.11/spf.py >--- pyspf-2.0.11-orig/spf.py 2014-12-05 17:20:07.000000000 +0100 >+++ pyspf-2.0.11/spf.py 2015-07-28 10:57:43.845717844 +0200 >@@ -401,6 +401,9 @@ > self.iplist = [] > ip6 = True > else: >+ if sys.version_info.major < 3: >+ if isinstance(i, str): >+ i = i.decode('ascii') > try: > self.ipaddr = ipaddress.ip_address(i) > except AttributeError: >@@ -1345,6 +1348,11 @@ > True > """ > try: >+ if sys.version_info.major < 3: >+ for idx, ip in enumerate(ipaddrs): >+ if isinstance(ipaddrs[idx], str): >+ ipaddrs[idx] = ipaddrs[idx].decode('ascii') >+ > for netwrk in [ipaddress.ip_network(ip) for ip in ipaddrs]: > network = netwrk.supernet(new_prefix=n) > if isinstance(self.iplist, bool):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 559366
:
410814
|
410816
|
410828
|
410830