mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-27 00:52:18 +08:00
Use builtins_module instead of BUILTINS
This commit is contained in:
@@ -111,12 +111,10 @@ class Evaluator(object):
|
||||
|
||||
self.reset_recursion_limitations()
|
||||
|
||||
# Constants
|
||||
# TODO move to get_builtins_module
|
||||
self.BUILTINS = compiled.get_special_object(self, 'BUILTINS')
|
||||
|
||||
def get_builtins_module(self):
|
||||
return self.BUILTINS
|
||||
@property
|
||||
@evaluator_function_cache()
|
||||
def builtins_module(self):
|
||||
return compiled.get_special_object(self, 'BUILTINS')
|
||||
|
||||
def reset_recursion_limitations(self):
|
||||
self.recursion_detector = recursion.RecursionDetector()
|
||||
|
||||
Reference in New Issue
Block a user