From: Brett Cannon Date: Tue, 24 Aug 2010 21:04:05 +0000 (+0000) Subject: Fix a bug where an attribute was lacking an object to work off of. X-Git-Tag: v3.2a2~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d6569cfb956c90c6904a7b9fbbc8cf345df47ae;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 35b42ca86e67..5566b78bf024 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