Use fast parser in api.Interpreter

This commit is contained in:
Takafumi Arakaki
2013-05-11 21:47:55 +02:00
parent 2846fe980b
commit a870fece0f

View File

@@ -540,9 +540,9 @@ class Interpreter(Script):
If `line` and `column` are None, they are assumed be at the end of
`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:
importer.import_raw_namespace(ns)