[pypy-commit] pypy default: Make python2.6 compatible, which I think we still care about?

alex_gaynor noreply at buildbot.pypy.org
Sat Nov 29 02:51:00 CET 2014


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r74757:bd8d6cf8f8be
Date: 2014-11-28 19:50 -0600
http://bitbucket.org/pypy/pypy/changeset/bd8d6cf8f8be/

Log:	Make python2.6 compatible, which I think we still care about?

diff --git a/rpython/translator/simplify.py b/rpython/translator/simplify.py
--- a/rpython/translator/simplify.py
+++ b/rpython/translator/simplify.py
@@ -617,7 +617,7 @@
             if simplify_phis(block):
                 progress = True
 
-    renaming = {key: uf[key].rep for key in uf}
+    renaming = dict((key, uf[key].rep) for key in uf)
     for block, links in entrymap.items():
         if inputs[block]:
             new_inputs, new_args = zip(*inputs[block])


More information about the pypy-commit mailing list