diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-04 16:36:53 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-04 16:36:53 (GMT) |
commit | 5a49ffca5e229b087bea31f378420ea4c9868dea (patch) | |
tree | deac1ba9e704f0c1541532526701303228261a12 | |
parent | 685e16d7d64a75a3703f25888d3f192ad5c25f70 (diff) | |
download | cpython-5a49ffca5e229b087bea31f378420ea4c9868dea.zip cpython-5a49ffca5e229b087bea31f378420ea4c9868dea.tar.gz cpython-5a49ffca5e229b087bea31f378420ea4c9868dea.tar.bz2 |
Fixed two minor errors.
-rwxr-xr-x | Lib/uu.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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') |