mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Merged revisions 71023 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71023 | kurt.kaiser | 2009-04-01 22:44:54 -0400 (Wed, 01 Apr 2009) | 3 lines Remove port spec from run.py and fix bug where subprocess fails to extract port from command line when warnings are present. ........
This commit is contained in:
parent
8d8d630003
commit
e67842aedc
2 changed files with 9 additions and 3 deletions
|
@ -3,6 +3,9 @@ What's New in IDLE 3.1a1?
|
||||||
|
|
||||||
*Release date: XX-XXX-XXXX*
|
*Release date: XX-XXX-XXXX*
|
||||||
|
|
||||||
|
- Remove port spec from run.py and fix bug where subprocess fails to
|
||||||
|
extract port from command line when warnings are present.
|
||||||
|
|
||||||
- Issue #4815: Offer conversion to UTF-8 if source files have
|
- Issue #4815: Offer conversion to UTF-8 if source files have
|
||||||
no encoding declaration and are not encoded in UTF-8.
|
no encoding declaration and are not encoded in UTF-8.
|
||||||
|
|
||||||
|
|
|
@ -67,10 +67,13 @@ def main(del_exitfunc=False):
|
||||||
global quitting
|
global quitting
|
||||||
global no_exitfunc
|
global no_exitfunc
|
||||||
no_exitfunc = del_exitfunc
|
no_exitfunc = del_exitfunc
|
||||||
port = 8833
|
|
||||||
#time.sleep(15) # test subprocess not responding
|
#time.sleep(15) # test subprocess not responding
|
||||||
if sys.argv[1:]:
|
try:
|
||||||
port = int(sys.argv[1])
|
assert(len(sys.argv) > 1)
|
||||||
|
port = int(sys.argv[-1])
|
||||||
|
except:
|
||||||
|
print>>sys.stderr, "IDLE Subprocess: no IP port passed in sys.argv."
|
||||||
|
return
|
||||||
sys.argv[:] = [""]
|
sys.argv[:] = [""]
|
||||||
sockthread = threading.Thread(target=manage_socket,
|
sockthread = threading.Thread(target=manage_socket,
|
||||||
name='SockThread',
|
name='SockThread',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue