]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed two minor errors.
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 4 Oct 1995 16:36:53 +0000 (16:36 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 4 Oct 1995 16:36:53 +0000 (16:36 +0000)
Lib/uu.py

index 2341bbd7e3d30ae8201fae9cba1a4129bfbe7656..56448031762962b23b17b0747537ea648c6cd93d 100755 (executable)
--- 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')