commit | 5312a7f912088361e2a1fccd5daeaa9dc4ff5fd3 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sat Jan 31 11:27:06 2015 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sat Jan 31 11:27:06 2015 +0200 |
tree | 48d4a3f45af918d461fa46ed3015e6ff652f61cb | |
parent | 7ece150395f9908870c3baa883e465ec9fe4dd9c [diff] |
Avoid deprecation warnings.
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 @@ 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)