Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b5ee69

Browse files
committed
Remove dead code in gzip.
These functions appear to be holdovers from the 2.x code, intended to handle problems with CRC signedness.
1 parent 5e610de commit 5b5ee69

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

Lib/gzip.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@
1616

1717
READ, WRITE = 1, 2
1818

19-
def U32(i):
20-
"""Return i as an unsigned integer, assuming it fits in 32 bits.
21-
If it's >= 2GB when viewed as a 32-bit unsigned int, return a long.
22-
"""
23-
if i < 0:
24-
i += 1 << 32
25-
return i
26-
27-
def LOWU32(i):
28-
"""Return the low-order 32 bits, as a non-negative int"""
29-
return i & 0xFFFFFFFF
30-
3119
def write32u(output, value):
3220
# The L format writes the bit pattern correctly whether signed
3321
# or unsigned.

0 commit comments

Comments
 (0)