Source

rope_py3k / rope / refactor / change_signature.py

Diff from to

rope/refactor/change_signature.py

         all_occurrences = []
         for finder in self.finders:
             all_occurrences.extend(finder.find_occurrences(resource, pymodule))
-        all_occurrences.sort(self._cmp_occurrences)
+        all_occurrences.sort(key = lambda o: o.get_primary_range())
         return all_occurrences
 
-    def _cmp_occurrences(self, o1, o2):
-        return cmp(o1.get_primary_range(), o2.get_primary_range())