summaryrefslogtreecommitdiffstats
path: root/Lib/stdwin
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 /Lib/stdwin
parentc6913e7da286f5a307661399e4c3306a5cce2c29 (diff)
downloadcpython-3f4f91704c88c48448a5593a675cd885ebf717d1.zip
cpython-3f4f91704c88c48448a5593a675cd885ebf717d1.tar.gz
cpython-3f4f91704c88c48448a5593a675cd885ebf717d1.tar.bz2
Comment 0.9.1 alternative to windows.remove(win) out.
Diffstat (limited to 'Lib/stdwin')
-rwxr-xr-xLib/stdwin/mainloop.py9
1 files changed, 5 insertions, 4 deletions
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.