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 = {}
|
kwargs = {}
|
||||||
if error_recovery:
|
if error_recovery:
|
||||||
parser = ParserWithRecovery
|
parser = ParserWithRecovery
|
||||||
kwargs = dict(module_path=path)
|
kwargs = dict()
|
||||||
else:
|
else:
|
||||||
kwargs = dict(start_symbol=start_symbol)
|
kwargs = dict(start_symbol=start_symbol)
|
||||||
parser = Parser
|
parser = Parser
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ class ParserWithRecovery(Parser):
|
|||||||
:param grammar: The grammar object of pgen2. Loaded by load_grammar.
|
:param grammar: The grammar object of pgen2. Loaded by load_grammar.
|
||||||
:param source: The codebase for the parser. Must be unicode.
|
: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__(
|
super(ParserWithRecovery, self).__init__(
|
||||||
grammar, source,
|
grammar, source,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -409,7 +409,7 @@ class Module(Scope):
|
|||||||
Depending on the underlying parser this may be a full module or just a part
|
Depending on the underlying parser this may be a full module or just a part
|
||||||
of a module.
|
of a module.
|
||||||
"""
|
"""
|
||||||
__slots__ = ('_used_names', '_name')
|
__slots__ = ('_used_names',)
|
||||||
type = 'file_input'
|
type = 'file_input'
|
||||||
|
|
||||||
def __init__(self, children):
|
def __init__(self, children):
|
||||||
|
|||||||
Reference in New Issue
Block a user