diff --git a/Lib/gzip.py b/Lib/gzip.py index 8802adb0d9a..36f9c36fd3f 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -24,6 +24,10 @@ def U32(i): i += 1L << 32 return i +def LOWU32(i): + """Return the low-order 32 bits of an int, as a non-negative int.""" + return i & 0xFFFFFFFFL + def write32(output, value): output.write(struct.pack("