]> granicus.if.org Git - python/commitdiff
Make uu use floor division instead of classic division.
authorGeorg Brandl <georg@python.org>
Tue, 28 Mar 2006 10:29:45 +0000 (10:29 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 28 Mar 2006 10:29:45 +0000 (10:29 +0000)
This was discovered by test_email failing with -Qnew.

Lib/uu.py

index 40e8bf00b11ed8807443f0efd9ff621dfde46cce..62448aa9b3a487cbc332507606d480f2eb0270c0 100755 (executable)
--- 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)