forked from VimPlug/jedi
StringIo is now always used as part of the io library
This commit is contained in:
@@ -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