Commits

Ali Gholami Rudi  committed e05b866

pyobjects: prevent _get_structural_attributes() recursion

  • Participants
  • Parent commits e2da2f5

Comments (0)

Files changed (1)

File rope/base/pyobjects.py

-from rope.base import exceptions, ast
+from rope.base import ast, exceptions, utils
 
 
 class PyObject(object):
 
     visitor_class = None
 
+    @utils.prevent_recursion(lambda: {})
     def _get_structural_attributes(self):
         if self.structural_attributes is None:
             self.structural_attributes = self._create_structural_attributes()
         return self.structural_attributes
 
+    @utils.prevent_recursion(lambda: {})
     def _get_concluded_attributes(self):
         if self.concluded_attributes.get() is None:
             self._get_structural_attributes()