vregistry.py
branchtls-sprint
changeset 727 30fe8f5afbd8
parent 724 1ecba333cfb0
child 734 4153a82a60a4
--- a/vregistry.py	Tue Feb 17 23:45:51 2009 +0100
+++ b/vregistry.py	Tue Feb 17 23:46:48 2009 +0100
@@ -653,7 +653,7 @@
     """
     if isinstance(selector, types.FunctionType):
         return objectify_selector(selector)()
-    if issubclass(selector, Selector):
+    if isinstance(selector, type) and issubclass(selector, Selector):
         return selector()
     return selector