Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pep8

  • Loading branch information...
commit dc21516c344b0fd8e8a2f72a003e6ae4a41fbeb2 1 parent ebdcf84
@bartTC authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 memcache_status/templatetags/memcache_status_tags.py
View
5 memcache_status/templatetags/memcache_status_tags.py
@@ -16,8 +16,9 @@ def render(self, context):
cache_backend = get_cache(cache_backend_nm)
this_backend_stats = cache_backend._cache.get_stats()
# returns list of (name, stats) tuples
- for this_backend_server_name, this_backend_server_stats in this_backend_stats:
- cache_stats.append(("%s: %s" % (cache_backend_nm, this_backend_server_name), this_backend_server_stats))
+ for server_name, server_stats in this_backend_stats:
+ cache_stats.append(("%s: %s" % (
+ cache_backend_nm, server_name), server_stats))
except AttributeError: # this backend probably doesn't support that
continue
context['cache_stats'] = cache_stats
Please sign in to comment.
Something went wrong with that request. Please try again.