Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFran Rogers <fran@dumetella.net>2010-11-16 05:18:51 (GMT)
committer Fran Rogers <fran@dumetella.net>2010-11-16 05:18:51 (GMT)
commit130b5a4fc1564ba251ee96f1045f7cc99e8cd592 (patch)
tree1abab8fdceb54577132f730cfcfcca69efd3748e
parentfe924177687aad5ea7670f368cc37cf73157df34 (diff)
Compare class __name__s instead (less buggy)
-rw-r--r--purk/windows.py2
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):