mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Convert a pile of obvious "yes/no" functions to return bool.
This commit is contained in:
parent
2f486b7fa6
commit
bc0e910826
34 changed files with 117 additions and 122 deletions
|
@ -850,8 +850,8 @@ class IntSet:
|
|||
|
||||
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)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue