[Python-checkins] python/dist/src/Lib codecs.py,1.36,1.37

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Mon Jan 10 13:01:42 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1246/Lib

Modified Files:
	codecs.py 
Log Message:
Fix and test for SF bug #1098990: codec readline() splits lines apart.


Index: codecs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/codecs.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- codecs.py	21 Dec 2004 22:24:00 -0000	1.36
+++ codecs.py	10 Jan 2005 12:01:38 -0000	1.37
@@ -322,9 +322,9 @@
                         line = line0withend
                     else:
                         line = line0withoutend
-                break
+                    break
             # we didn't get anything or this was our only try
-            elif not data or size is not None:
+            if not data or size is not None:
                 if line and not keepends:
                     line = line.splitlines(False)[0]
                 break



More information about the Python-checkins mailing list