From: Benjamin Peterson Date: Sat, 2 May 2009 17:33:01 +0000 (+0000) Subject: remove py3k compat code X-Git-Tag: v2.7a1~1315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62821691426f06cf7632b28d730e405fa31dead7;p=python remove py3k compat code --- diff --git a/Lib/ipaddr.py b/Lib/ipaddr.py index c95a814477..d6ea31085d 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: # 1 and targetpath[-2] == ":"): targetpath = targetpath[:-1] # don't include leading "/" from file name if present