[Python-checkins] r74420 - python/branches/tk_and_idle_maintenance/Lib/idlelib/PyShell.py

guilherme.polo python-checkins at python.org
Thu Aug 13 18:55:59 CEST 2009


Author: guilherme.polo
Date: Thu Aug 13 18:55:58 2009
New Revision: 74420
Log:
Ignore WindowsError.
Modified:
 python/branches/tk_and_idle_maintenance/Lib/idlelib/PyShell.py
Modified: python/branches/tk_and_idle_maintenance/Lib/idlelib/PyShell.py
==============================================================================
--- python/branches/tk_and_idle_maintenance/Lib/idlelib/PyShell.py	(original)
+++ python/branches/tk_and_idle_maintenance/Lib/idlelib/PyShell.py	Thu Aug 13 18:55:58 2009
@@ -482,7 +482,13 @@
 
 def terminate_subprocess(self):
 "Make sure subprocess is terminated and collect status."
- self.rpcproc.kill()
+ if sys.platform[:3] == 'win':
+ try:
+ self.rpcproc.kill()
+ except WindowsError:
+ pass
+ else:
+ self.rpcproc.kill()
 self.rpcproc.wait()
 
 def transfer_path(self):


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /