[Python-checkins] r43396 - python/trunk/Lib/uu.py
georg.brandl
python-checkins at python.org
Tue Mar 28 12:29:48 CEST 2006
Author: georg.brandl
Date: Tue Mar 28 12:29:45 2006
New Revision: 43396
Modified:
python/trunk/Lib/uu.py
Log:
Make uu use floor division instead of classic division.
This was discovered by test_email failing with -Qnew.
Modified: python/trunk/Lib/uu.py
==============================================================================
--- python/trunk/Lib/uu.py (original)
+++ python/trunk/Lib/uu.py Tue Mar 28 12:29:45 2006
@@ -132,7 +132,7 @@
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)
More information about the Python-checkins
mailing list