diff options
author | Fran Rogers <fran@dumetella.net> | 2010-11-16 05:18:51 (GMT) |
---|---|---|
committer | Fran Rogers <fran@dumetella.net> | 2010-11-16 05:18:51 (GMT) |
commit | 130b5a4fc1564ba251ee96f1045f7cc99e8cd592 (patch) | |
tree | 1abab8fdceb54577132f730cfcfcca69efd3748e | |
parent | fe924177687aad5ea7670f368cc37cf73157df34 (diff) |
Compare class __name__s instead (less buggy)
-rw-r--r-- | purk/windows.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/purk/windows.py b/purk/windows.py index 26064f9..2e3c1fa 100644 --- a/purk/windows.py +++ b/purk/windows.py @@ -31,7 +31,7 @@ def get(windowclass, network, id, core): id = network.norm_case(id) for w in core.manager: - if (type(w), w.network, w.id) == (windowclass, network, id): + if (type(w).__name__, w.network, w.id) == (windowclass.__name__, network, id): return w def get_with(manager, wclass=None, network=None, id=None): |