Commits

Ali Gholami Rudi  committed 6ade041

inline: not searching all files when inlining a local variable

  • Participants
  • Parent commits e8e4ba4

Comments (0)

Files changed (1)

File rope/refactor/inline.py

     def get_changes(self, remove=True, only_current=False, resources=None,
                     task_handle=taskhandle.NullTaskHandle()):
         if resources is None:
+            if rename._is_local(self.pyname):
+                resources = [self.resource]
+            else:
                 resources = self.pycore.get_python_files()
         if only_current:
             resources = [self.original]