summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-04-04 22:55:58 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-04-04 22:55:58 (GMT)
commitbc0e9108261693b6278687f4fb4709ff76c2e543 (patch)
treeafef5d4734034ed0268950cf06321aefd4154ff3 /Lib/bdb.py
parent2f486b7fa6451b790b154e6e4751239d69d46952 (diff)
downloadcpython-bc0e9108261693b6278687f4fb4709ff76c2e543.zip
cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.tar.gz
cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.tar.bz2
Convert a pile of obvious "yes/no" functions to return bool.
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index d5b051b..d0c738f 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -92,31 +92,31 @@ class Bdb:
def stop_here(self, frame):
if self.stopframe is None:
- return 1
+ return True
if frame is self.stopframe:
- return 1
+ return True
while frame is not None and frame is not self.stopframe:
if frame is self.botframe:
- return 1
+ return True
frame = frame.f_back
- return 0
+ return False
def break_here(self, frame):
filename = self.canonic(frame.f_code.co_filename)
if not self.breaks.has_key(filename):
- return 0
+ return False
lineno = frame.f_lineno
if not lineno in self.breaks[filename]:
- return 0
+ return False
# flag says ok to delete temp. bp
(bp, flag) = effective(filename, lineno, frame)
if bp:
self.currentbp = bp.number
if (flag and bp.temporary):
self.do_clear(str(bp.number))
- return 1
+ return True
else:
- return 0
+ return False
def do_clear(self, arg):
raise NotImplementedError, "subclass of bdb must implement do_clear()"