summaryrefslogtreecommitdiff
path: root/Lib/gzip.py
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2011-04-13 18:57:40 +0200
committerNadeem Vawda <nadeem.vawda@gmail.com>2011-04-13 18:57:40 +0200
commit5b5ee69e0759a189d1d25ed643228da78c2a0e16 (patch)
tree23440a11ef1d5b7f19ace6ec89f636832706f297 /Lib/gzip.py
parent5e610def7d552dfc7cb71f4cdf2aadb6deabda7c (diff)
downloadcpython-git-5b5ee69e0759a189d1d25ed643228da78c2a0e16.tar.gz
Remove dead code in gzip.
These functions appear to be holdovers from the 2.x code, intended to handle problems with CRC signedness.
Diffstat (limited to 'Lib/gzip.py')
-rw-r--r--Lib/gzip.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py
index f8cd2a1bd6..e6b8193505 100644
--- a/Lib/gzip.py
+++ b/Lib/gzip.py
@@ -16,18 +16,6 @@ FTEXT, FHCRC, FEXTRA, FNAME, FCOMMENT = 1, 2, 4, 8, 16
READ, WRITE = 1, 2
-def U32(i):
- """Return i as an unsigned integer, assuming it fits in 32 bits.
- If it's >= 2GB when viewed as a 32-bit unsigned int, return a long.
- """
- if i < 0:
- i += 1 << 32
- return i
-
-def LOWU32(i):
- """Return the low-order 32 bits, as a non-negative int"""
- return i & 0xFFFFFFFF
-
def write32u(output, value):
# The L format writes the bit pattern correctly whether signed
# or unsigned.