Kaydet (Commit) d10b2dc4 authored tarafından Guido van Rossum's avatar Guido van Rossum

Be even more lenient when catching errors from readlines().

üst 4b5386f3
......@@ -125,11 +125,12 @@ def updatecache(filename, module_globals=None):
# No luck
## print '*** Cannot stat', filename, ':', msg
return []
## print("Refreshing cache for %s..." % fullname)
try:
fp = open(fullname, 'rU')
lines = fp.readlines()
fp.close()
except IOError as msg:
except Exception as msg:
## print '*** Cannot open', fullname, ':', msg
return []
coding = "utf-8"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment