diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-24 19:58:48 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-24 19:58:48 +0200 |
commit | 6a70b885be35c5079dbb01ed66561a53ff7d75af (patch) | |
tree | c87c04765b0859f6bde60223e6d7ac96076a6f08 /Tools/scripts/findlinksto.py | |
parent | 0b429aa07eba30b3cd714738342d563a342b40b8 (diff) | |
download | cpython-6a70b885be35c5079dbb01ed66561a53ff7d75af.tar.gz |
Use OESeeror instead of os.error (#16720)
Patch by Serhiy Storchaka.
Diffstat (limited to 'Tools/scripts/findlinksto.py')
-rwxr-xr-x | Tools/scripts/findlinksto.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/findlinksto.py b/Tools/scripts/findlinksto.py index b4c09ef1ce..b924f27b09 100755 --- a/Tools/scripts/findlinksto.py +++ b/Tools/scripts/findlinksto.py @@ -36,7 +36,7 @@ def visit(prog, dirname, names): linkto = os.readlink(name) if prog.search(linkto) is not None: print(name, '->', linkto) - except os.error: + except OSError: pass if __name__ == '__main__': |