1
0
forked from VimPlug/jedi

Remove a usage of the old module path.

This commit is contained in:
Dave Halter
2017-03-28 01:43:40 +02:00
parent 6a9c2f8795
commit 1d0796ac07
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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,
)

View File

@@ -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):