diff options
author | Brett Cannon <bcannon@gmail.com> | 2010-08-24 21:04:05 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2010-08-24 21:04:05 (GMT) |
commit | 1d6569cfb956c90c6904a7b9fbbc8cf345df47ae (patch) | |
tree | a50fcbb34a31472bd6251dccb7bcfcca484a9b02 /Lib/importlib | |
parent | f52c2c63cd7b42f1c7b41919c8b50232d13acbd7 (diff) | |
download | cpython-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.
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 2 |
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 |