Commits

Jason R. Coombs committed 1055c81

Fixed cache_info to return the hits and misses as numbers and not lists

  • Participants
  • Parent commits 312511f
  • Tags 0.9.1

Comments (0)

Files changed (1)

File py31compat/cache.py

 		def cache_info():
 			"""Report cache statistics"""
 			with lock:
-				return _CacheInfo(hits, misses, maxsize, len(cache))
+				return _CacheInfo(hits[0], misses[0], maxsize, len(cache))
 
 		def cache_clear():
 			"""Clear the cache and cache statistics"""