Ionel Cristian Mărieș  committed f6f455f

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

  • Participants
  • Parent commits a7e8d64
  • Branches default

Comments (0)

Files changed (1)

File piston/

     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)