[pypy-svn] r71395 - pypy/branch/debug-vref2/pypy/tool

arigo at codespeak.net arigo at codespeak.net
Mon Feb 22 09:18:03 CET 2010


Author: arigo
Date: Mon Feb 22 09:18:02 2010
New Revision: 71395

Modified:
   pypy/branch/debug-vref2/pypy/tool/stdlib_opcode.py
Log:
Merge r71394.


Modified: pypy/branch/debug-vref2/pypy/tool/stdlib_opcode.py
==============================================================================
--- pypy/branch/debug-vref2/pypy/tool/stdlib_opcode.py	(original)
+++ pypy/branch/debug-vref2/pypy/tool/stdlib_opcode.py	Mon Feb 22 09:18:02 2010
@@ -61,8 +61,8 @@
         return i, self.index
 
     def __cmp__(self, other):
-        return cmp(self.sortkey(), other.sortkey())
-
+        return (cmp(self.__class__, other.__class__) or
+                cmp(self.sortkey(), other.sortkey()))
 
 opdescmap = {}
 



More information about the Pypy-commit mailing list