summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-10-05 19:12:44 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-10-05 19:12:44 (GMT)
commit9b1e59a2b3a4683b38762576361f8ee3361314f4 (patch)
treec497659114eb5b3e16fb90c1863cf98280dd9e06 /Lib
parent81e5e0a725a21823a90c39e4853871942ccd751c (diff)
downloadcpython-9b1e59a2b3a4683b38762576361f8ee3361314f4.zip
cpython-9b1e59a2b3a4683b38762576361f8ee3361314f4.tar.gz
cpython-9b1e59a2b3a4683b38762576361f8ee3361314f4.tar.bz2
Issue #16123: IDLE - deprecate running without a subprocess.
Patch by Roger Serwy
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/PyShell.py10
-rw-r--r--Lib/idlelib/help.txt2
2 files changed, 9 insertions, 3 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 50d6182..a2f1e86 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -1008,7 +1008,10 @@ class PyShell(OutputWindow):
self.close()
return False
else:
- nosub = "==== No Subprocess ===="
+ nosub = ("==== No Subprocess ====\n\n" +
+ "WARNING: Running IDLE without a Subprocess is deprecated\n" +
+ "and will be removed in a later version. See Help/IDLE Help\n" +
+ "for details.\n\n")
sys.displayhook = rpc.displayhook
self.write("Python %s on %s\n%s\n%s" %
@@ -1295,7 +1298,8 @@ USAGE: idle [-deins] [-t title] [file]*
idle [-dns] [-t title] - [arg]*
-h print this help message and exit
- -n run IDLE without a subprocess (see Help/IDLE Help for details)
+ -n run IDLE without a subprocess (DEPRECATED,
+ see Help/IDLE Help for details)
The following options will override the IDLE 'settings' configuration:
@@ -1373,6 +1377,8 @@ def main():
if o == '-i':
enable_shell = True
if o == '-n':
+ print(" Warning: running IDLE without a subprocess is deprecated.",
+ file=sys.stderr)
use_subprocess = False
if o == '-r':
script = a
diff --git a/Lib/idlelib/help.txt b/Lib/idlelib/help.txt
index 7bfd2ca..9314573 100644
--- a/Lib/idlelib/help.txt
+++ b/Lib/idlelib/help.txt
@@ -256,7 +256,7 @@ Command line usage:
Enter idle -h at the command prompt to get a usage message.
-Running without a subprocess:
+Running without a subprocess: (DEPRECATED)
If IDLE is started with the -n command line switch it will run in a
single process and will not create the subprocess which runs the RPC