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
|
||||
|
||||
@@ -11,7 +11,7 @@ from __future__ import absolute_import
|
||||
|
||||
import string
|
||||
import re
|
||||
from jedi._compatibility import StringIO
|
||||
from io import StringIO
|
||||
from token import *
|
||||
import collections
|
||||
cookie_re = re.compile("coding[:=]\s*([-\w.]+)")
|
||||
|
||||
Reference in new issue
Block a user