Commits

Ali Gholami Rudi  committed 5fae866

Caching PyScope.get_end()

  • Participants
  • Parent commits b367c70

Comments (0)

Files changed (1)

File rope/base/pyscopes.py

     _end = None
 
     def get_end(self):
-        global_scope = self._get_global_scope()
-        return global_scope._get_scope_finder().find_scope_end(self)
-
-    def xget_end(self):
         if self._end is None:
             global_scope = self._get_global_scope()
             self._end = global_scope._get_scope_finder().find_scope_end(self)