[pypy-svn] pypy default: (lac, cfbolz): make --view imply --pdb, otherwise it has no effect

cfbolz commits-noreply at bitbucket.org
Sat Apr 30 13:19:28 CEST 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: 
Changeset: r43796:7f2db120f9f2
Date: 2011-04-30 13:10 +0200
http://bitbucket.org/pypy/pypy/changeset/7f2db120f9f2/

Log:	(lac, cfbolz): make --view imply --pdb, otherwise it has no effect

diff --git a/pypy/translator/goal/translate.py b/pypy/translator/goal/translate.py
--- a/pypy/translator/goal/translate.py
+++ b/pypy/translator/goal/translate.py
@@ -89,7 +89,6 @@
     'translation.debug': False,
 }
 
-# we want 2.4 expand_default functionality
 import optparse
 from pypy.tool.ansi_print import ansi_log
 log = py.log.Producer("translation")
@@ -210,6 +209,10 @@
     from pypy.translator import translator
     from pypy.translator import driver
     from pypy.translator.tool.pdbplus import PdbPlusShow
+
+    if translateconfig.view:
+        translateconfig.pdb = True
+
     if translateconfig.profile:
         from cProfile import Profile
         prof = Profile()


More information about the Pypy-commit mailing list