summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2010-08-24 21:04:05 (GMT)
committerBrett Cannon <bcannon@gmail.com>2010-08-24 21:04:05 (GMT)
commit1d6569cfb956c90c6904a7b9fbbc8cf345df47ae (patch)
treea50fcbb34a31472bd6251dccb7bcfcca484a9b02
parentf52c2c63cd7b42f1c7b41919c8b50232d13acbd7 (diff)
downloadcpython-1d6569cfb956c90c6904a7b9fbbc8cf345df47ae.zip
cpython-1d6569cfb956c90c6904a7b9fbbc8cf345df47ae.tar.gz
cpython-1d6569cfb956c90c6904a7b9fbbc8cf345df47ae.tar.bz2
Fix a bug where an attribute was lacking an object to work off of.
Related to the fix for issue #9572. Thanks to Ɓukasz Czuja for catching the bug.
-rw-r--r--Lib/importlib/_bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 35b42ca..5566b78 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -499,7 +499,7 @@ class _SourceFileLoader(_FileLoader, SourceLoader):
continue
# If can't get proper access, then just forget about writing
# the data.
- elif errno == errno.EACCES:
+ elif exc.errno == errno.EACCES:
return
else:
raise