StringIo is now always used as part of the io library
This commit is contained in:
1 parent
d9bf9be35e
commit
9c2fcfffd7
3 files changed
+7
-17
No files matched your search
@@ -118,12 +118,6 @@ Usage::
|
||||
|
||||
"""
|
||||
|
||||
# StringIO (Python 2.5 has no io module), so use io only for py3k
|
||||
try:
|
||||
from StringIO import StringIO
|
||||
except ImportError:
|
||||
from io import StringIO
|
||||
|
||||
# hasattr function used because python
|
||||
if is_py3:
|
||||
hasattr = hasattr
|
||||
|
||||
Reference in new issue
Block a user