mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
Some Python 2 fixes.
This commit is contained in:
@@ -78,7 +78,7 @@ class Differ(object):
|
||||
def initialize(self, source):
|
||||
debug.dbg('differ: initialize', color='YELLOW')
|
||||
grammar = load_grammar()
|
||||
self.parser = ParserWithRecovery(grammar, source)
|
||||
self.parser = ParserWithRecovery(grammar, u(source))
|
||||
return self.parser.module
|
||||
|
||||
def parse(self, source, copies=0, parsers=0, expect_error_leaves=False):
|
||||
|
||||
Reference in New Issue
Block a user