This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | amaury.forgeotdarc |
|---|---|
| Recipients | alexandre.vassalotti, amaury.forgeotdarc |
| Date | 2007年08月28日.09:00:55 |
| SpamBayes Score | 0.088050626 |
| 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:56 | amaury.forgeotdarc | set | spambayes_score: 0.0880506 -> 0.088050626 recipients: + amaury.forgeotdarc, alexandre.vassalotti |
| 2007年08月28日 09:00:55 | amaury.forgeotdarc | set | spambayes_score: 0.0880506 -> 0.0880506 messageid: <1188291655.95.0.00919860563892.issue1029@psf.upfronthosting.co.za> |
| 2007年08月28日 09:00:55 | amaury.forgeotdarc | link | issue1029 messages |
| 2007年08月28日 09:00:55 | amaury.forgeotdarc | create | |