Make uu use floor division instead of classic division.

This was discovered by test_email failing with -Qnew.
This commit is contained in:
Georg Brandl 2006-03-28 10:29:45 +00:00
parent 019514e854
commit f871270c92
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ def decode(in_file, out_file=None, mode=None, quiet=0):
data = binascii.a2b_uu(s)
except binascii.Error, v:
# 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])
if not quiet:
sys.stderr.write("Warning: %s\n" % v)