From b83819f2912b7be618be35dc5c0bf911bd37220c Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 2 May 2009 18:10:37 +0000 Subject: make py3k compat code explicitly on --- Lib/ipaddr.py | 37 +++++++++---------------------- Lib/test/test_ipaddr.py | 59 ++++++++++++++++++++++--------------------------- 2 files changed, 37 insertions(+), 59 deletions(-) diff --git a/Lib/ipaddr.py b/Lib/ipaddr.py index f40cd7b..77c21f5 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: #