diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-31 09:27:06 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-31 09:27:06 (GMT) |
commit | 5312a7f912088361e2a1fccd5daeaa9dc4ff5fd3 (patch) | |
tree | 48d4a3f45af918d461fa46ed3015e6ff652f61cb /Lib/encodings | |
parent | 7ece150395f9908870c3baa883e465ec9fe4dd9c (diff) | |
download | cpython-5312a7f912088361e2a1fccd5daeaa9dc4ff5fd3.zip cpython-5312a7f912088361e2a1fccd5daeaa9dc4ff5fd3.tar.gz cpython-5312a7f912088361e2a1fccd5daeaa9dc4ff5fd3.tar.bz2 |
Avoid deprecation warnings.
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 fb03758..4b137a5 100644 --- a/Lib/encodings/uu_codec.py +++ b/Lib/encodings/uu_codec.py @@ -84,7 +84,7 @@ def uu_decode(input,errors='strict'): data = 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 = a2b_uu(s[:nbytes]) #sys.stderr.write("Warning: %s\n" % str(v)) write(data) |