]> granicus.if.org Git - python/commitdiff
SF #515005, change "1 + ''" (which pychecker warns about being invalid)
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 11 Feb 2002 18:26:02 +0000 (18:26 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 11 Feb 2002 18:26:02 +0000 (18:26 +0000)
into "raise Exception".

Lib/bdb.py

index 29cba8039f587e5c0cb84f12a7a9fade8a475350..9d5bd78c3746672aa91c6f476a9ae6413151a0e4 100644 (file)
@@ -168,7 +168,7 @@ class Bdb:
     def set_trace(self):
         """Start debugging from here."""
         try:
-            1 + ''
+            raise Exception
         except:
             frame = sys.exc_info()[2].tb_frame.f_back
         self.reset()
@@ -188,7 +188,7 @@ class Bdb:
             # no breakpoints; run without debugger overhead
             sys.settrace(None)
             try:
-                1 + ''  # raise an exception
+                raise Exception
             except:
                 frame = sys.exc_info()[2].tb_frame.f_back
             while frame and frame is not self.botframe: