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.
This commit is contained in:
Brett Cannon 2010-08-24 21:04:05 +00:00
parent f52c2c63cd
commit 1d6569cfb9

View file

@ -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