From: Benjamin Peterson Date: Sat, 2 May 2009 18:10:37 +0000 (+0000) Subject: make py3k compat code explicitly on X-Git-Tag: v3.1b1~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b83819f2912b7be618be35dc5c0bf911bd37220c;p=python make py3k compat code explicitly on --- diff --git a/Lib/ipaddr.py b/Lib/ipaddr.py index f40cd7bb58..77c21f58d5 100644 --- a/Lib/ipaddr.py +++ b/Lib/ipaddr.py @@ -193,17 +193,6 @@ def collapse_address_list(addresses): sorted(addresses, key=BaseIP._get_networks_key)) -# Test whether this Python implementation supports byte objects that -# are not identical to str ones. -# We need to exclude platforms where bytes == str so that we can -# distinguish between packed representations and strings, for example -# b'12::' (the IPv4 address 49.50.58.58) and '12::' (an IPv6 address). -try: - _compat_has_real_bytes = bytes != str -except NameError: #