[pywin32-checkins] pywin32/Pythonwin/pywin/framework stdin.py, 1.7, 1.8
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2009-01-03 05:55:01
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12149/pywin/framework Modified Files: stdin.py Log Message: Have stdin.read() in Pythonwin treat dialog cancel as EOF. Not sure how this ever worked, but it seems stdin.read() can never return a value without this fix (but now it has no way to abort the operation!) Index: stdin.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/stdin.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** stdin.py 26 Nov 2008 08:39:33 -0000 1.7 --- stdin.py 3 Jan 2009 05:54:57 -0000 1.8 *************** *** 94,98 **** try: self.__get_line() ! except EOFError: # deal with cancellation of get_input_line dialog desired_size = len(self.buffer) # Be satisfied! --- 94,98 ---- try: self.__get_line() ! except (EOFError, KeyboardInterrupt): # deal with cancellation of get_input_line dialog desired_size = len(self.buffer) # Be satisfied! |