summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/shared/mimetype.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/ranger/shared/mimetype.py b/ranger/shared/mimetype.py
index 1a7f79a0..c6577056 100644
--- a/ranger/shared/mimetype.py
+++ b/ranger/shared/mimetype.py
@@ -17,9 +17,7 @@ from ranger import relpath
 import mimetypes
 class MimeTypeAware(object):
 	mimetypes = {}
-	__initialized = False
 	def __init__(self):
-		if not MimeTypeAware.__initialized:
-			MimeTypeAware.mimetypes = mimetypes.MimeTypes()
-			MimeTypeAware.mimetypes.read(relpath('data/mime.types'))
-			MimeTypeAware.__initialized = True
+		MimeTypeAware.__init__ = lambda _: None  # refuse multiple inits
+		MimeTypeAware.mimetypes = mimetypes.MimeTypes()
+		MimeTypeAware.mimetypes.read(relpath('data/mime.types'))