[pypy-commit] pypy py3k: fixes for app_main

alex_gaynor noreply at buildbot.pypy.org
Mon Nov 7 21:32:23 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: py3k
Changeset: r48884:2a365dee5e98
Date: 2011-11-07 15:32 -0500
http://bitbucket.org/pypy/pypy/changeset/2a365dee5e98/

Log:	fixes for app_main

diff --git a/pypy/translator/goal/app_main.py b/pypy/translator/goal/app_main.py
--- a/pypy/translator/goal/app_main.py
+++ b/pypy/translator/goal/app_main.py
@@ -120,7 +120,7 @@
     except AttributeError:
         print('no translation information found', file=sys.stderr)
     else:
-        optitems = options.items()
+        optitems = list(options.items())
         optitems.sort()
         for name, value in optitems:
             print(' %51s: %s' % (name, value))
@@ -138,7 +138,7 @@
 
 def _print_jit_help():
     import pypyjit
-    items = pypyjit.defaults.items()
+    items = list(pypyjit.defaults.items())
     items.sort()
     for key, value in items:
         print('  --jit %s=N %slow-level JIT parameter (default %s)' % (
@@ -304,7 +304,7 @@
                               newline=newline,
                               line_buffering=line_buffering)
     return stream
-    
+
 def set_io_encoding(io_encoding):
     try:
         import _file
@@ -510,7 +510,7 @@
                      unbuffered,
                      ignore_environment,
                      **ignored):
-    # with PyPy in top of CPython we can only have around 100 
+    # with PyPy in top of CPython we can only have around 100
     # but we need more in the translated PyPy for the compiler package
     if '__pypy__' not in sys.builtin_module_names:
         sys.setrecursionlimit(5000)


More information about the pypy-commit mailing list