summaryrefslogtreecommitdiff
path: root/cygwinccompiler.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
commit8b21b15c3cebd6cf09d1ceb8abf91f0ebbafa499 (patch)
tree279e74ebfed987d4033ff5b43a31124489f86d39 /cygwinccompiler.py
parent437e5b731feb5f5b0e7205ff94d15c07c32e83a4 (diff)
downloadpython-setuptools-git-8b21b15c3cebd6cf09d1ceb8abf91f0ebbafa499.tar.gz
Replace IOError with OSError (#16715)
Diffstat (limited to 'cygwinccompiler.py')
-rw-r--r--cygwinccompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cygwinccompiler.py b/cygwinccompiler.py
index 0bdd539c..0c23ab1b 100644
--- a/cygwinccompiler.py
+++ b/cygwinccompiler.py
@@ -359,7 +359,7 @@ def check_config_h():
return CONFIG_H_NOTOK, "'%s' does not mention '__GNUC__'" % fn
finally:
config_h.close()
- except IOError as exc:
+ except OSError as exc:
return (CONFIG_H_UNCERTAIN,
"couldn't read '%s': %s" % (fn, exc.strerror))