Anonymous avatar Anonymous committed 8951d12

history: removed unused variables

Comments (0)

Files changed (1)

rope/base/history.py

         will not be appended to `self.undo_list`.
 
         """
-        self.current_change = changes
         try:
+            self.current_change = changes
             changes.do(change.create_job_set(task_handle, changes))
         finally:
             self.current_change = None
             change = self.undo_list[-1]
         dependencies = self._find_dependencies(self.undo_list, change)
         self._move_front(self.undo_list, dependencies)
-        index = self.undo_list.index(change)
         self._perform_undos(len(dependencies), task_handle)
         return self.redo_list[-len(dependencies):]
 
             change = self.redo_list[-1]
         dependencies = self._find_dependencies(self.redo_list, change)
         self._move_front(self.redo_list, dependencies)
-        index = self.redo_list.index(change)
         self._perform_redos(len(dependencies), task_handle)
         return self.undo_list[-len(dependencies):]
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.