mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Use fast parser in api.Interpreter
This commit is contained in:
@@ -540,9 +540,9 @@ class Interpreter(Script):
|
|||||||
If `line` and `column` are None, they are assumed be at the end of
|
If `line` and `column` are None, they are assumed be at the end of
|
||||||
`source`.
|
`source`.
|
||||||
"""
|
"""
|
||||||
super(Interpreter, self).__init__(source, fast=False, **kwds)
|
super(Interpreter, self).__init__(source, **kwds)
|
||||||
|
|
||||||
importer = interpret.ObjectImporter(self._parser.scope)
|
importer = interpret.ObjectImporter(self._parser.user_scope)
|
||||||
for ns in namespaces:
|
for ns in namespaces:
|
||||||
importer.import_raw_namespace(ns)
|
importer.import_raw_namespace(ns)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user