diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-01 19:51:15 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-01 19:51:15 +0000 |
commit | c0b1bb6d1e60ccf5bb996982376f67f2a167b8d4 (patch) | |
tree | 19fbeeda95c0f7d860f26a2a34becdc38ea39971 /Lib/uu.py | |
parent | e3a032af65863e1dcfa567e5bd597206852285fa (diff) | |
download | cpython-c0b1bb6d1e60ccf5bb996982376f67f2a167b8d4.tar.gz |
Replaced obsolete stat module constants with equivalent attributes
Diffstat (limited to 'Lib/uu.py')
-rwxr-xr-x | Lib/uu.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,7 @@ def encode(in_file, out_file, name=None, mode=None): name = os.path.basename(in_file) if mode is None: try: - mode = os.stat(in_file)[0] + mode = os.stat(in_file).st_mode except AttributeError: pass in_file = open(in_file, 'rb') |