summaryrefslogtreecommitdiffstats
path: root/Lib/uu.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/uu.py')
-rwxr-xr-xLib/uu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/uu.py b/Lib/uu.py
index 40e8bf0..3ccedb0 100755
--- 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)
@@ -151,7 +151,7 @@ def test():
(options, args) = parser.parse_args()
if len(args) > 2:
- p.error('incorrect number of arguments')
+ parser.error('incorrect number of arguments')
sys.exit(1)
input = sys.stdin