diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-12-22 19:34:52 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-12-22 19:34:52 +0100 |
commit | 1452c18ab918da9a3cb8965e165d6f0baa0eec26 (patch) | |
tree | 8ac7df1dc34a89e4b2ab715a072fdcaaa548dc32 /imdb-lookup | |
parent | a0c452fa666dfa048a5723aeed0651d3b22f48d3 (diff) | |
download | scripts-1452c18ab918da9a3cb8965e165d6f0baa0eec26.tar.gz scripts-1452c18ab918da9a3cb8965e165d6f0baa0eec26.zip |
cleanup
Diffstat (limited to 'imdb-lookup')
-rwxr-xr-x | imdb-lookup/imdbinfo.py | 14 |
1 files changed, 0 insertions, 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__ |