From 1452c18ab918da9a3cb8965e165d6f0baa0eec26 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Mon, 22 Dec 2014 19:34:52 +0100 Subject: cleanup --- imdb-lookup/imdbinfo.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py index 7718bd1..be6edad 100755 --- a/imdb-lookup/imdbinfo.py +++ b/imdb-lookup/imdbinfo.py @@ -26,19 +26,6 @@ except ImportError as e: print("or `pip install --user (one of: Pillow tmdbsimple requests)`") sys.exit(1) -def synchronized(lock): - """ Synchronization decorator. """ - - def wrap(f): - def newFunction(*args, **kw): - lock.acquire() - try: - return f(*args, **kw) - finally: - lock.release() - return newFunction - return wrap - def read_key(): if "TMDB_KEY" in os.environ.keys(): return os.environ["TMDB_KEY"] @@ -53,7 +40,6 @@ def read_key(): ".tmdbkey")).read().strip() raise Exception("No TMDB Key defined. Set TMDB_KEY=.. or .tmdbkey file") - class TMDBCache(object): def __init__(self): logger_name = self.__class__.__module__ + "." + self.__class__.__name__ -- cgit v1.2.1