Skip to content
Browse files

Add __contains__ for proper lookup in cache Engines class.

  • Loading branch information...
1 parent 4663490 commit 08bffa5f6df497f28fe3481fe80b517628b0f1a3 @wagnerrp wagnerrp committed Mar 29, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 tmdb3/cache_engine.py
View
2 tmdb3/cache_engine.py
@@ -15,6 +15,8 @@ def register(self, engine):
self._engines[engine.name] = engine
def __getitem__(self, key):
return self._engines[key]
+ def __contains__(self, key):
+ return self._engines.__contains__(key)
Engines = Engines()
class CacheEngineType( type ):

0 comments on commit 08bffa5

Please sign in to comment.
Something went wrong with that request. Please try again.