diff --git a/jedi/parser/python/__init__.py b/jedi/parser/python/__init__.py index 3715bafa..d9b66ad4 100644 --- a/jedi/parser/python/__init__.py +++ b/jedi/parser/python/__init__.py @@ -95,7 +95,7 @@ def parse(code=None, path=None, grammar=None, error_recovery=True, kwargs = {} if error_recovery: parser = ParserWithRecovery - kwargs = dict(module_path=path) + kwargs = dict() else: kwargs = dict(start_symbol=start_symbol) parser = Parser diff --git a/jedi/parser/python/parser.py b/jedi/parser/python/parser.py index 077058de..0b99e1d0 100644 --- a/jedi/parser/python/parser.py +++ b/jedi/parser/python/parser.py @@ -145,7 +145,7 @@ class ParserWithRecovery(Parser): :param grammar: The grammar object of pgen2. Loaded by load_grammar. :param source: The codebase for the parser. Must be unicode. """ - def __init__(self, grammar, source, module_path=None): + def __init__(self, grammar, source): super(ParserWithRecovery, self).__init__( grammar, source, ) diff --git a/jedi/parser/python/tree.py b/jedi/parser/python/tree.py index 7f6a8b32..77fe53f1 100644 --- a/jedi/parser/python/tree.py +++ b/jedi/parser/python/tree.py @@ -409,7 +409,7 @@ class Module(Scope): Depending on the underlying parser this may be a full module or just a part of a module. """ - __slots__ = ('_used_names', '_name') + __slots__ = ('_used_names',) type = 'file_input' def __init__(self, children):