commit | 32200aeac697fcb3f2b4528127a2fbf0a22a8f17 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Jun 01 19:51:15 2002 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Jun 01 19:51:15 2002 +0000 |
tree | b99f2c04d576a3699ab9a2b6dfc1fc0e31e3c734 | |
parent | 16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1 [diff] [blame] |
Replaced obsolete stat module constants with equivalent attributes
diff --git a/Lib/uu.py b/Lib/uu.py index 2ee336c..f591798 100755 --- a/Lib/uu.py +++ b/Lib/uu.py
@@ -52,7 +52,7 @@ 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')