commit | 8b33dd8e547790af86e9fc85ea6c315ead276b6e | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Mon Dec 24 19:58:48 2012 +0200 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Mon Dec 24 19:58:48 2012 +0200 |
tree | 4da041d085b8c0226f691429036835167e3874ac | |
parent | 6a7a49c6318afe8a54fe6dda2dd321af2a275295 [diff] [blame] |
Use OESeeror instead of os.error (#16720) Patch by Serhiy Storchaka.
diff --git a/Tools/scripts/untabify.py b/Tools/scripts/untabify.py index 4b67c15..861c83c 100755 --- a/Tools/scripts/untabify.py +++ b/Tools/scripts/untabify.py
@@ -39,11 +39,11 @@ backup = filename + "~" try: os.unlink(backup) - except os.error: + except OSError: pass try: os.rename(filename, backup) - except os.error: + except OSError: pass with open(filename, "w", encoding=encoding) as f: f.write(newtext)