forked from VimPlug/jedi
again: try to use unicode, #52
This commit is contained in:
@@ -69,17 +69,15 @@ else:
|
||||
exec source in global_map """, 'blub', 'exec'))
|
||||
|
||||
# tokenize function
|
||||
# TODO remove this, not used anymore
|
||||
import tokenize
|
||||
if is_py3k:
|
||||
tokenize_func = tokenize.tokenize
|
||||
else:
|
||||
tokenize_func = tokenize.generate_tokens
|
||||
tokenize_func = tokenize.generate_tokens
|
||||
|
||||
# BytesIO (Python 2.5 has no io module)
|
||||
try:
|
||||
from StringIO import StringIO as BytesIO
|
||||
except ImportError:
|
||||
from io import BytesIO as BytesIO
|
||||
from io import StringIO as BytesIO
|
||||
|
||||
# hasattr function used because python
|
||||
if is_py3k:
|
||||
|
||||
@@ -1126,8 +1126,6 @@ class PyFuzzyParser(object):
|
||||
self.user_stmt = None
|
||||
self.code = code + '\n' # end with \n, because the parser needs it
|
||||
self.no_docstr = no_docstr
|
||||
if is_py3k:
|
||||
self.code = self.code.encode()
|
||||
|
||||
# initialize global Scope
|
||||
self.module = Module(module_path)
|
||||
|
||||
Reference in New Issue
Block a user