mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
New == syntax
This commit is contained in:
parent
4d8e859e8f
commit
bdfcfccbe5
73 changed files with 419 additions and 391 deletions
|
@ -21,7 +21,7 @@ def delayfunc(msecs):
|
|||
#
|
||||
# Use millisleep for very short delays or if there are no windows
|
||||
#
|
||||
if msecs < 100 or mainloop.countwindows() = 0:
|
||||
if msecs < 100 or mainloop.countwindows() == 0:
|
||||
if msecs > 0:
|
||||
time.millisleep(msecs)
|
||||
return
|
||||
|
@ -46,7 +46,7 @@ cancel = q.cancel
|
|||
# Emptiness check must check both queues
|
||||
#
|
||||
def empty():
|
||||
return q.empty() and mainloop.countwindows() = 0
|
||||
return q.empty() and mainloop.countwindows() == 0
|
||||
|
||||
# Run until there is nothing left to do
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue