Commit f871270c authored by Georg Brandl's avatar Georg Brandl

Make uu use floor division instead of classic division.

This was discovered by test_email failing with -Qnew.
parent 019514e8
...@@ -132,7 +132,7 @@ def decode(in_file, out_file=None, mode=None, quiet=0): ...@@ -132,7 +132,7 @@ def decode(in_file, out_file=None, mode=None, quiet=0):
data = binascii.a2b_uu(s) data = binascii.a2b_uu(s)
except binascii.Error, v: except binascii.Error, v:
# Workaround for broken uuencoders by /Fredrik Lundh # Workaround for broken uuencoders by /Fredrik Lundh
nbytes = (((ord(s[0])-32) & 63) * 4 + 5) / 3 nbytes = (((ord(s[0])-32) & 63) * 4 + 5) // 3
data = binascii.a2b_uu(s[:nbytes]) data = binascii.a2b_uu(s[:nbytes])
if not quiet: if not quiet:
sys.stderr.write("Warning: %s\n" % v) sys.stderr.write("Warning: %s\n" % v)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment