From 62821691426f06cf7632b28d730e405fa31dead7 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 2 May 2009 17:33:01 +0000 Subject: [PATCH] remove py3k compat code --- Lib/ipaddr.py | 28 --------------------------- Lib/test/test_ipaddr.py | 42 +++++++---------------------------------- Lib/zipfile.py | 4 +++- 3 files changed, 10 insertions(+), 64 deletions(-) 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 -- 2.50.0