Opened 9 years ago
Last modified 4 years ago
#12046 closed defect
Replace StringIO and cStringIO with io.StringIO and io.BytesIO — at Initial Version
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 1.3.1 |
Component: | general | Version: | |
Severity: | normal | Keywords: | python3 |
Cc: | timograham@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
The io module is available since Python 2.6. We can therefore replace StringIO.StringIO
and cStringIO.StringIO
with io.StringIO
and io.BytesIO
.
io.StringIO
requires a unicode string. io.BytesIO
requires a bytes string. StringIO.StringIO
allows either unicode or bytes string. cStringIO.StringIO
requires a string that is encoded as a bytes string.
Note:
See TracTickets
for help on using tickets.