commit | 17f05bbc78dbcd1db308266c31370da9ec1b1d47 | [log] [tgz] |
---|---|---|
author | Timo Furrer <tuxtimo@gmail.com> | Thu Jan 17 15:15:53 2019 +0100 |
committer | Berker Peksag <berker.peksag@gmail.com> | Thu Jan 17 17:15:53 2019 +0300 |
tree | 27fd4f29df7b62bdad0400bd151fcf1d1d3d9689 | |
parent | f1d8e7cf17a010d2657822e06a41b30c9542a8c7 [diff] [blame] |
bpo-33687: Fix call to os.chmod() in uu.decode() (GH-7282)
diff --git a/Lib/uu.py b/Lib/uu.py index 8333e86..9b1e5e6 100755 --- a/Lib/uu.py +++ b/Lib/uu.py
@@ -133,10 +133,7 @@ out_file = sys.stdout.buffer elif isinstance(out_file, str): fp = open(out_file, 'wb') - try: - os.path.chmod(out_file, mode) - except AttributeError: - pass + os.chmod(out_file, mode) out_file = fp opened_files.append(out_file) #