Ionel Maries Cristian committed f6f455f

Changed generate_doc to have a better typecheck for handler classes to allow classes with custom metaclass.

Comments (0)

Files changed (1)

     for the given handler. Use this to generate
     documentation for your API.
-    if not type(handler_cls) is handler.HandlerMetaClass:
+    if isinstance(type(handler_cls), handler.HandlerMetaClass):
         raise ValueError("Give me handler, not %s" % type(handler_cls))
     return HandlerDocumentation(handler_cls)