summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-03-28 10:29:45 (GMT)
committerGeorg Brandl <georg@python.org>2006-03-28 10:29:45 (GMT)
commitf871270c92494efc86211167676cbc812a23a1bb (patch)
tree2e8fb46a6bd9da544b36871457e377fb3eddcb2a /Lib
parent019514e854a1fdb84960bcdd8b57c86a3b7f4755 (diff)
downloadcpython-f871270c92494efc86211167676cbc812a23a1bb.zip
cpython-f871270c92494efc86211167676cbc812a23a1bb.tar.gz
cpython-f871270c92494efc86211167676cbc812a23a1bb.tar.bz2
Make uu use floor division instead of classic division.
This was discovered by test_email failing with -Qnew.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/uu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/uu.py b/Lib/uu.py
index 40e8bf0..62448aa 100755
--- a/Lib/uu.py
+++ b/Lib/uu.py
@@ -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)