[Python-checkins] CVS: python/dist/src/Lib doctest.py,1.21,1.22
Tim Peters
tim_one@users.sourceforge.net
Wed, 20 Mar 2002 11:32:05 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv1412
Modified Files:
doctest.py
Log Message:
Change raw "except:" constructs to pass on KeyboardInterrupt.
Bugfix candidate? Don't know -- never bothered me, but it's minor
either way.
Index: doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/doctest.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** doctest.py 23 Oct 2001 02:21:52 -0000 1.21
--- doctest.py 20 Mar 2002 19:32:03 -0000 1.22
***************
*** 431,434 ****
--- 431,436 ----
got = fakeout.get()
state = OK
+ except KeyboardInterrupt:
+ raise
except:
# See whether the exception was expected.
***************
*** 522,525 ****
--- 524,529 ----
# to look like a string <0.9 wink>
doc = str(doc)
+ except KeyboardInterrupt:
+ raise
except:
return 0, 0