diff options
author | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
commit | bdfcfccbe591e15221f35add01132174c9b4e669 (patch) | |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/stdwin/WindowSched.py | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff) | |
download | cpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2 |
New == syntax
Diffstat (limited to 'Lib/stdwin/WindowSched.py')
-rwxr-xr-x | Lib/stdwin/WindowSched.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/stdwin/WindowSched.py b/Lib/stdwin/WindowSched.py index 9125317..67c3afb 100755 --- a/Lib/stdwin/WindowSched.py +++ b/Lib/stdwin/WindowSched.py @@ -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 # |