1. Jason Moiron
  2. johnny-cache
  3. Issues
Issue #61 new

minor efficiency increase

created an issue

In cache.py, reverse from:

if not cache_backend and not hasattr(self, 'cache_backend'):


if not hasattr(self, 'cache_backend') and not cache_backend:

Comments (2)

  1. Sepero reporter

    Just a few lines down, the same goes for reversing these also- if not hasattr(self, 'kg_class') and not keygen: if not hasattr(self, 'kh_class') and keyhandler is None:

    I'm just going over the code line by line, and I may come back with more stuff. My apologies.

  2. Log in to comment