mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	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
							
								
									b502bc7a1a
								
							
						
					
					
						commit
						4724f40bcb
					
				
					 2 changed files with 10 additions and 4 deletions
				
			
		|  | @ -67,10 +67,13 @@ def main(del_exitfunc=False): | |||
|     global quitting | ||||
|     global no_exitfunc | ||||
|     no_exitfunc = del_exitfunc | ||||
|     port = 8833 | ||||
|     #time.sleep(15) # test subprocess not responding | ||||
|     if sys.argv[1:]: | ||||
|         port = int(sys.argv[1]) | ||||
|     try: | ||||
|         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[:] = [""] | ||||
|     sockthread = threading.Thread(target=manage_socket, | ||||
|                                   name='SockThread', | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kurt B. Kaiser
						Kurt B. Kaiser