From 5a49ffca5e229b087bea31f378420ea4c9868dea Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 4 Oct 1995 16:36:53 +0000 Subject: Fixed two minor errors. --- Lib/uu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/uu.py b/Lib/uu.py index 2341bbd..5644803 100755 --- a/Lib/uu.py +++ b/Lib/uu.py @@ -43,10 +43,10 @@ def encode(in_file, out_file, name=None, mode=None): in_file = sys.stdin elif type(in_file) == type(''): if name == None: - name = basename(in_file) + name = os.path.basename(in_file) if mode == None: try: - mode = os.path.stat(in_file)[0] + mode = os.stat(in_file)[0] except AttributeError: pass in_file = open(in_file, 'rb') -- cgit v0.12