Commits

Anonymous committed e8eee7e

change: renamed Change.operations to _operations

  • Participants
  • Parent commits db6a955

Comments (0)

Files changed (1)

rope/base/change.py

 
     @property
     @utils.cacheit
-    def operations(self):
+    def _operations(self):
         return _ResourceOperations(self.resource.project)
 
 
     def do(self):
         if self.old_contents is None:
             self.old_contents = self.resource.read()
-        self.operations.write_file(self.resource, self.new_contents)
+        self._operations.write_file(self.resource, self.new_contents)
 
     @_handle_job_set
     def undo(self):
         if self.old_contents is None:
             raise exceptions.HistoryError(
                 'Undoing a change that is not performed yet!')
-        self.operations.write_file(self.resource, self.old_contents)
+        self._operations.write_file(self.resource, self.old_contents)
 
     def __str__(self):
         return 'Change <%s>' % self.resource.path
 
     @_handle_job_set
     def do(self):
-        self.operations.move(self.resource, self.new_resource)
+        self._operations.move(self.resource, self.new_resource)
 
     @_handle_job_set
     def undo(self):
-        self.operations.move(self.new_resource, self.resource)
+        self._operations.move(self.new_resource, self.resource)
 
     def __str__(self):
         return 'Move <%s>' % self.resource.path
 
     @_handle_job_set
     def do(self):
-        self.operations.create(self.resource)
+        self._operations.create(self.resource)
 
     @_handle_job_set
     def undo(self):
-        self.operations.remove(self.resource)
+        self._operations.remove(self.resource)
 
     def __str__(self):
         return 'Create Resource <%s>' % (self.resource.path)
 
     @_handle_job_set
     def do(self):
-        self.operations.remove(self.resource)
+        self._operations.remove(self.resource)
 
     # TODO: Undoing remove operations
     @_handle_job_set