Commits

David Chambers committed dc017a7

Replaced identity comparison with value comparison.

Comments (0)

Files changed (1)

 class Document(Resource):
     @classmethod
     def get(cls, filepath):
-        if POST_CACHE_SECONDS is 0:
+        if POST_CACHE_SECONDS == 0:
             return Document(filepath)
 
         cache_key = 'mango:%s' % filepath