summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-11-19 20:41:07 (GMT)
committerGuido van Rossum <guido@python.org>1991-11-19 20:41:07 (GMT)
commit3f4f91704c88c48448a5593a675cd885ebf717d1 (patch)
tree2f4fce5649d5b3c458cba3f157b06f12dd6f21b3
parentc6913e7da286f5a307661399e4c3306a5cce2c29 (diff)
downloadcpython-3f4f91704c88c48448a5593a675cd885ebf717d1.zip
cpython-3f4f91704c88c48448a5593a675cd885ebf717d1.tar.gz
cpython-3f4f91704c88c48448a5593a675cd885ebf717d1.tar.bz2
Comment 0.9.1 alternative to windows.remove(win) out.
-rw-r--r--Lib/lib-stdwin/mainloop.py9
-rwxr-xr-xLib/stdwin/mainloop.py9
2 files changed, 10 insertions, 8 deletions
diff --git a/Lib/lib-stdwin/mainloop.py b/Lib/lib-stdwin/mainloop.py
index 9142d02..0cf5bde 100644
--- a/Lib/lib-stdwin/mainloop.py
+++ b/Lib/lib-stdwin/mainloop.py
@@ -30,10 +30,11 @@ def register(win):
def unregister(win):
if win in windows:
windows.remove(win) # Not in 0.9.1
- for i in range(len(windows)):
- if windows[i] = win:
- del windows[i]
- break
+ # 0.9.1 solution:
+ #for i in range(len(windows)):
+ # if windows[i] = win:
+ # del windows[i]
+ # break
# Interfaces used by WindowSched.
diff --git a/Lib/stdwin/mainloop.py b/Lib/stdwin/mainloop.py
index 9142d02..0cf5bde 100755
--- a/Lib/stdwin/mainloop.py
+++ b/Lib/stdwin/mainloop.py
@@ -30,10 +30,11 @@ def register(win):
def unregister(win):
if win in windows:
windows.remove(win) # Not in 0.9.1
- for i in range(len(windows)):
- if windows[i] = win:
- del windows[i]
- break
+ # 0.9.1 solution:
+ #for i in range(len(windows)):
+ # if windows[i] = win:
+ # del windows[i]
+ # break
# Interfaces used by WindowSched.