diff --git a/Lib/ipaddr.py b/Lib/ipaddr.py index c95a8144773..d6ea31085da 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