summaryrefslogtreecommitdiff
path: root/Lib/lib2to3/refactor.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-25 16:47:37 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-25 16:47:37 +0200
commit45d1bc39881473d6fec76c4627070ac0b89d4b4c (patch)
treeffa31c1c94f04716c23c5a877e085151abfbcf8b /Lib/lib2to3/refactor.py
parent5d30ade43e4a2d711483f3326b7f40865ccbc71e (diff)
downloadcpython-45d1bc39881473d6fec76c4627070ac0b89d4b4c.tar.gz
Replace IOError with OSError (#16715)
Diffstat (limited to 'Lib/lib2to3/refactor.py')
-rw-r--r--Lib/lib2to3/refactor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/refactor.py b/Lib/lib2to3/refactor.py
index 87f686e1e7..8100317871 100644
--- a/Lib/lib2to3/refactor.py
+++ b/Lib/lib2to3/refactor.py
@@ -326,7 +326,7 @@ class RefactoringTool(object):
"""
try:
f = open(filename, "rb")
- except IOError as err:
+ except OSError as err:
self.log_error("Can't open %s: %s", filename, err)
return None, None
try: