]> granicus.if.org Git - python/commitdiff
Bug #813342: Start the IDLE subprocess with -Qnew if the parent
authorGeorg Brandl <georg@python.org>
Thu, 12 Oct 2006 07:57:24 +0000 (07:57 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 12 Oct 2006 07:57:24 +0000 (07:57 +0000)
is started with that option.
 (backport from rev. 52295)

Lib/idlelib/PyShell.py
Misc/NEWS

index aa27028b1b5b994174295485b1eba84392c7aa12..1bdd0a64ca359ee9fc54be480daa9a5a779499b1 100644 (file)
@@ -351,6 +351,8 @@ class ModifiedInterpreter(InteractiveInterpreter):
 
     def build_subprocess_arglist(self):
         w = ['-W' + s for s in sys.warnoptions]
+        if 1/2 > 0: # account for new division
+            w.append('-Qnew')
         # Maybe IDLE is installed and is being accessed via sys.path,
         # or maybe it's not installed and the idle.py script is being
         # run from the IDLE source directory.
index 8feb1fd6e9c177d66e93bcebea2fdf643ae2169c..e8be7fa1d4e8a8a5f7700c00e4bd22d9fbbfad9f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -66,6 +66,9 @@ Extension Modules
 Library
 -------
 
+- Bug #813342: Start the IDLE subprocess with -Qnew if the parent
+  is started with that option.
+
 - Bug #1446043: correctly raise a LookupError if an encoding name given
   to encodings.search_function() contains a dot.