[Python-checkins] python/dist/src/Lib dumbdbm.py,1.29,1.30

akuchling@users.sourceforge.net akuchling at users.sourceforge.net
Tue Jun 7 21:36:12 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2036/Lib
Modified Files:
	dumbdbm.py 
Log Message:
[Bug #1172763] dumbdbm uses eval() on lines, so it chokes if there's an extra \r on the end of a line; fixed by stripping off trailing whitespace.
Index: dumbdbm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dumbdbm.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- dumbdbm.py	14 Jul 2003 12:15:15 -0000	1.29
+++ dumbdbm.py	7 Jun 2005 19:36:09 -0000	1.30
@@ -81,6 +81,7 @@
 pass
 else:
 for line in f:
+ line = line.rstrip()
 key, pos_and_siz_pair = eval(line)
 self._index[key] = pos_and_siz_pair
 f.close()


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /