mirror of https://github.com/python/cpython
remove debugging rubish
This commit is contained in:
parent
266e454866
commit
b9e7c01294
|
@ -123,15 +123,12 @@ def updatecache(filename, module_globals=None):
|
|||
except os.error:
|
||||
pass
|
||||
else:
|
||||
# No luck
|
||||
## print '*** Cannot stat', filename, ':', msg
|
||||
return []
|
||||
try:
|
||||
fp = open(fullname, 'rU')
|
||||
lines = fp.readlines()
|
||||
fp.close()
|
||||
except IOError, msg:
|
||||
## print '*** Cannot open', fullname, ':', msg
|
||||
return []
|
||||
if lines and not lines[-1].endswith('\n'):
|
||||
lines[-1] += '\n'
|
||||
|
|
Loading…
Reference in New Issue