Author amaury.forgeotdarc
Recipients alexandre.vassalotti, amaury.forgeotdarc
Date 2007-08-28.09:00:55
SpamBayes Score 0.0880506
Marked as misclassified No
Message-id <1188291655.95.0.00919860563892.issue1029@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a new version of the class, which removes the 'newline' argument
from the constructor.
I also removed the 'encoding' argument, since this is really an
implementation detail of the underlying buffer.

Index: Lib/io.py
===================================================================
--- Lib/io.py	(revision 57564)
+++ Lib/io.py	(working copy)
@@ -1390,10 +1390,10 @@

     # XXX This is really slow, but fully functional

-    def __init__(self, initial_value="", encoding="utf-8", newline=None):
+    def __init__(self, initial_value=""):
         super(StringIO, self).__init__(BytesIO(),
-                                       encoding=encoding,
-                                       newline=newline)
+                                       encoding="utf-8",
+                                       newline='\n')
         if initial_value:
             if not isinstance(initial_value, basestring):
                 initial_value = str(initial_value)
History
Date User Action Args
2007-08-28 09:00:56amaury.forgeotdarcsetspambayes_score: 0.0880506 -> 0.0880506
recipients: + amaury.forgeotdarc, alexandre.vassalotti
2007-08-28 09:00:55amaury.forgeotdarcsetspambayes_score: 0.0880506 -> 0.0880506
messageid: <1188291655.95.0.00919860563892.issue1029@psf.upfronthosting.co.za>
2007-08-28 09:00:55amaury.forgeotdarclinkissue1029 messages
2007-08-28 09:00:55amaury.forgeotdarccreate