forked from VimPlug/jedi
Remove a usage of the old module path.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user