diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-24 17:58:48 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-24 17:58:48 (GMT) |
commit | 8b33dd8e547790af86e9fc85ea6c315ead276b6e (patch) | |
tree | 4da041d085b8c0226f691429036835167e3874ac /Tools/scripts/treesync.py | |
parent | 6a7a49c6318afe8a54fe6dda2dd321af2a275295 (diff) | |
download | cpython-8b33dd8e547790af86e9fc85ea6c315ead276b6e.zip cpython-8b33dd8e547790af86e9fc85ea6c315ead276b6e.tar.gz cpython-8b33dd8e547790af86e9fc85ea6c315ead276b6e.tar.bz2 |
Use OESeeror instead of os.error (#16720)
Patch by Serhiy Storchaka.
Diffstat (limited to 'Tools/scripts/treesync.py')
-rwxr-xr-x | Tools/scripts/treesync.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/treesync.py b/Tools/scripts/treesync.py index b2649c4..652d394 100755 --- a/Tools/scripts/treesync.py +++ b/Tools/scripts/treesync.py @@ -78,7 +78,7 @@ def process(slave, master): print("creating slave directory", slave) try: os.mkdir(slave) - except os.error as msg: + except OSError as msg: print("can't make slave directory", slave, ":", msg) return else: |