diff options
author | Guido van Rossum <guido@python.org> | 2000-02-15 18:03:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-02-15 18:03:01 (GMT) |
commit | 553fa4432aa39c9f155c29693264e412e0f4a4ce (patch) | |
tree | da5b9d697317206f0ddcddb7d83a78ec77085d4b /Tools/idle | |
parent | f801f3b05c9959a6fa0b7d4912ff17d81a193f18 (diff) | |
download | cpython-553fa4432aa39c9f155c29693264e412e0f4a4ce.zip cpython-553fa4432aa39c9f155c29693264e412e0f4a4ce.tar.gz cpython-553fa4432aa39c9f155c29693264e412e0f4a4ce.tar.bz2 |
Correct a typo and remove an unqualified except that was hiding the error.
Diffstat (limited to 'Tools/idle')
-rw-r--r-- | Tools/idle/WindowList.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/idle/WindowList.py b/Tools/idle/WindowList.py index cee435d..6de3e58 100644 --- a/Tools/idle/WindowList.py +++ b/Tools/idle/WindowList.py @@ -39,8 +39,8 @@ class WindowList: def unregister_callback(self, callback): try: - self.callback.remove(callback) - except: + self.callbacks.remove(callback) + except ValueError: pass def call_callbacks(self): |