commit | bc0e9108261693b6278687f4fb4709ff76c2e543 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Thu Apr 04 22:55:58 2002 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Thu Apr 04 22:55:58 2002 +0000 |
tree | afef5d4734034ed0268950cf06321aefd4154ff3 | |
parent | 2f486b7fa6451b790b154e6e4751239d69d46952 [diff] [blame] |
Convert a pile of obvious "yes/no" functions to return bool.
diff --git a/Lib/mhlib.py b/Lib/mhlib.py index 6cf0128..8d0eff1 100644 --- a/Lib/mhlib.py +++ b/Lib/mhlib.py
@@ -850,8 +850,8 @@ def contains(self, x): for lo, hi in self.pairs: - if lo <= x <= hi: return 1 - return 0 + if lo <= x <= hi: return True + return False def append(self, x): for i in range(len(self.pairs)):