diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-07 14:04:37 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-07 14:04:37 +0200 |
commit | 519114df4258f17bc33a31c6c1614fd82e2ab0be (patch) | |
tree | 4f29d5972347ee48ec81fd6219e79fcdd5464d45 /Lib/encodings | |
parent | Issue #17293: uuid.getnode() now determines MAC address on AIX using netstat. (diff) | |
download | cpython-519114df4258f17bc33a31c6c1614fd82e2ab0be.tar.gz cpython-519114df4258f17bc33a31c6c1614fd82e2ab0be.tar.bz2 cpython-519114df4258f17bc33a31c6c1614fd82e2ab0be.zip |
Issue #22406: Fixed the uu_codec codec incorrectly ported to 3.x.
Based on patch by Martin Panter.
Diffstat (limited to 'Lib/encodings')
-rw-r--r-- | Lib/encodings/uu_codec.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/encodings/uu_codec.py b/Lib/encodings/uu_codec.py index 14540950af6..2a5728fb5b7 100644 --- a/Lib/encodings/uu_codec.py +++ b/Lib/encodings/uu_codec.py @@ -54,7 +54,7 @@ def uu_decode(input, errors='strict'): data = binascii.a2b_uu(s) except binascii.Error as v: # Workaround for broken uuencoders by /Fredrik Lundh - nbytes = (((ord(s[0])-32) & 63) * 4 + 5) / 3 + nbytes = (((s[0]-32) & 63) * 4 + 5) // 3 data = binascii.a2b_uu(s[:nbytes]) #sys.stderr.write("Warning: %s\n" % str(v)) write(data) |