mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -281,7 +281,7 @@ class dispatcher:
|
|||
# ==================================================
|
||||
|
||||
def readable (self):
|
||||
return 1
|
||||
return True
|
||||
|
||||
if os.name == 'mac':
|
||||
# The macintosh will select a listening socket for
|
||||
|
@ -290,7 +290,7 @@ class dispatcher:
|
|||
return not self.accepting
|
||||
else:
|
||||
def writable (self):
|
||||
return 1
|
||||
return True
|
||||
|
||||
# ==================================================
|
||||
# socket object methods.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue