[pypy-svn] r75800 - pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86

jcreigh at codespeak.net jcreigh at codespeak.net
Fri Jul 2 22:38:23 CEST 2010


Author: jcreigh
Date: Fri Jul  2 22:38:22 2010
New Revision: 75800

Modified:
   pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/assembler.py
Log:
use set instead of dict.fromkeys :-)

Modified: pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/assembler.py	(original)
+++ pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/assembler.py	Fri Jul  2 22:38:22 2010
@@ -255,7 +255,7 @@
         """
         if not we_are_translated():
             # Arguments should be unique
-            assert len(dict.fromkeys(inputargs)) == len(inputargs)
+            assert len(set(inputargs)) == len(inputargs)
 
         funcname = self._find_debug_merge_point(operations)
 
@@ -290,7 +290,7 @@
     def assemble_bridge(self, faildescr, inputargs, operations):
         if not we_are_translated():
             # Arguments should be unique
-            assert len(dict.fromkeys(inputargs)) == len(inputargs)
+            assert len(set(inputargs)) == len(inputargs)
 
         funcname = self._find_debug_merge_point(operations)
 



More information about the Pypy-commit mailing list