mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Comment 0.9.1 alternative to windows.remove(win) out.
This commit is contained in:
parent
c6913e7da2
commit
3f4f91704c
2 changed files with 10 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue