1
0
forked from VimPlug/jedi

switched completely to unicode (in python2), fixes #52

This commit is contained in:
David Halter
2012-11-02 16:08:38 +01:00
parent 82c86dcd3e
commit 0704873fd7
5 changed files with 15 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ import keywords
import helpers
import builtin
from _compatibility import next
from _compatibility import next, unicode
class NotFoundError(Exception):
@@ -201,6 +201,7 @@ class Script(object):
:type source_path: string or None
"""
def __init__(self, source, line, column, source_path):
source = unicode(source)
self.pos = line, column
self.module = modules.ModuleWithCursor(source_path, source=source,
position=self.pos)