Commits

Anonymous committed 3797a81

fix weird and dysfunctional is not None cascade

  • Participants
  • Parent commits 007fa39

Comments (0)

Files changed (1)

zine/application.py

         custom theme subclasses too.
         """
         if isinstance(name, Theme):
-            if template_path is not metadata is not settings \
-               is not configuration_page is not None:
-                raise TypeError('if a theme instance is provided extra '
+            if not (template_path == metadata == settings \
+                    == configuration_page == None):
+                raise TypeError('if a theme instance is provided, the other '
                                 'arguments must be ommited or None.')
             theme = name
         else: