[Python-checkins] r81433 - python/trunk/Lib/linecache.py
benjamin.peterson
python-checkins at python.org
Fri May 21 23:32:50 CEST 2010
Author: benjamin.peterson
Date: Fri May 21 23:32:49 2010
New Revision: 81433
Log:
remove debugging rubish
Modified:
python/trunk/Lib/linecache.py
Modified: python/trunk/Lib/linecache.py
==============================================================================
--- python/trunk/Lib/linecache.py (original)
+++ python/trunk/Lib/linecache.py Fri May 21 23:32:49 2010
@@ -123,15 +123,12 @@
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'
More information about the Python-checkins
mailing list