summaryrefslogtreecommitdiff
path: root/Tools/scripts/findlinksto.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-24 19:58:48 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-24 19:58:48 +0200
commit6a70b885be35c5079dbb01ed66561a53ff7d75af (patch)
treec87c04765b0859f6bde60223e6d7ac96076a6f08 /Tools/scripts/findlinksto.py
parent0b429aa07eba30b3cd714738342d563a342b40b8 (diff)
downloadcpython-6a70b885be35c5079dbb01ed66561a53ff7d75af.tar.gz
Use OESeeror instead of os.error (#16720)
Patch by Serhiy Storchaka.
Diffstat (limited to 'Tools/scripts/findlinksto.py')
-rwxr-xr-xTools/scripts/findlinksto.py2
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__':