aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-29 11:39:48 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-29 11:39:48 +0300
commit48e6a8c88a69adbdc7c3bf9adef5696828b1c5fe (patch)
tree45c7d23b65375342454fa469c9479b22f6c69a77 /Lib/asynchat.py
parentIssue #18760: Improved cross-references in the xml package. (diff)
parentIssue #18743: Fix references to non-existant "StringIO" module (diff)
downloadcpython-48e6a8c88a69adbdc7c3bf9adef5696828b1c5fe.tar.gz
cpython-48e6a8c88a69adbdc7c3bf9adef5696828b1c5fe.tar.bz2
cpython-48e6a8c88a69adbdc7c3bf9adef5696828b1c5fe.zip
Issue #18743: Fix references to non-existant "StringIO" module
in docstrings and comments.
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r--Lib/asynchat.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py
index f055d63ba49..0378fa70697 100644
--- a/Lib/asynchat.py
+++ b/Lib/asynchat.py
@@ -69,12 +69,9 @@ class async_chat (asyncore.dispatcher):
# for string terminator matching
self.ac_in_buffer = b''
- # we use a list here rather than cStringIO for a few reasons...
- # del lst[:] is faster than sio.truncate(0)
- # lst = [] is faster than sio.truncate(0)
- # cStringIO will be gaining unicode support in py3k, which
- # will negatively affect the performance of bytes compared to
- # a ''.join() equivalent
+ # we use a list here rather than io.BytesIO for a few reasons...
+ # del lst[:] is faster than bio.truncate(0)
+ # lst = [] is faster than bio.truncate(0)
self.incoming = []
# we toss the use of the "simple producer" and replace it with