From 1d6569cfb956c90c6904a7b9fbbc8cf345df47ae Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 24 Aug 2010 21:04:05 +0000 Subject: Fix a bug where an attribute was lacking an object to work off of. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Related to the fix for issue #9572. Thanks to Ɓukasz Czuja for catching the bug. --- Lib/importlib/_bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12