[Python-checkins] CVS: python/dist/src/Lib bdb.py,1.33,1.34

Neal Norwitz nnorwitz@users.sourceforge.net
Mon, 11 Feb 2002 10:26:04 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv14129

Modified Files:
	bdb.py 
Log Message:
SF #515005, change "1 + ''" (which pychecker warns about being invalid)
into "raise Exception".


Index: bdb.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bdb.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** bdb.py	29 Nov 2001 02:50:15 -0000	1.33
--- bdb.py	11 Feb 2002 18:26:02 -0000	1.34
***************
*** 169,173 ****
          """Start debugging from here."""
          try:
!             1 + ''
          except:
              frame = sys.exc_info()[2].tb_frame.f_back
--- 169,173 ----
          """Start debugging from here."""
          try:
!             raise Exception
          except:
              frame = sys.exc_info()[2].tb_frame.f_back
***************
*** 189,193 ****
              sys.settrace(None)
              try:
!                 1 + ''  # raise an exception
              except:
                  frame = sys.exc_info()[2].tb_frame.f_back
--- 189,193 ----
              sys.settrace(None)
              try:
!                 raise Exception
              except:
                  frame = sys.exc_info()[2].tb_frame.f_back