forked from VimPlug/jedi
renamed BytesIO to StringIO, because it no longer made sense
This commit is contained in:
@@ -28,7 +28,7 @@ All those classes are being generated by PyFuzzyParser, which takes python text
|
||||
as input and ignores just all the non-python stuff. Basically you could feed it
|
||||
a perl script, and it should still work (which means throw no error.
|
||||
"""
|
||||
from _compatibility import (next, literal_eval, tokenize_func, BytesIO,
|
||||
from _compatibility import (next, literal_eval, tokenize_func, StringIO,
|
||||
property, is_py3k, cleandoc, Python3Method)
|
||||
|
||||
import tokenize
|
||||
@@ -1592,7 +1592,7 @@ class PyFuzzyParser(object):
|
||||
|
||||
:raises: IndentationError
|
||||
"""
|
||||
self.buf = BytesIO(self.code)
|
||||
self.buf = StringIO(self.code)
|
||||
self.gen = PushBackIterator(tokenize_func(self.buf.readline))
|
||||
|
||||
extended_flow = ['else', 'elif', 'except', 'finally']
|
||||
|
||||
Reference in New Issue
Block a user