summaryrefslogtreecommitdiff
path: root/imdb-lookup/imdbinfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'imdb-lookup/imdbinfo.py')
-rwxr-xr-ximdb-lookup/imdbinfo.py14
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__