From 32200aeac697fcb3f2b4528127a2fbf0a22a8f17 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 1 Jun 2002 19:51:15 +0000 Subject: Replaced obsolete stat module constants with equivalent attributes --- Lib/uu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/uu.py') diff --git a/Lib/uu.py b/Lib/uu.py index 2ee336cafd..f5917983f6 100755 --- a/Lib/uu.py +++ b/Lib/uu.py @@ -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') -- cgit v1.2.1