diff options
-rw-r--r-- | service/pixelated/support/encrypted_file_storage.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/service/pixelated/support/encrypted_file_storage.py b/service/pixelated/support/encrypted_file_storage.py index c6410404..4720fe91 100644 --- a/service/pixelated/support/encrypted_file_storage.py +++ b/service/pixelated/support/encrypted_file_storage.py @@ -1,10 +1,7 @@ -from StringIO import StringIO import io -import sys -import errno import os -from whoosh.filedb.filestore import FileStorage, ReadOnlyError +from whoosh.filedb.filestore import FileStorage from whoosh.filedb.structfile import StructFile, BufferFile from cryptography.fernet import Fernet @@ -61,5 +58,3 @@ class EncryptedFileStorage(FileStorage): decrypted = self._decrypt(file_content) f = BufferFile(buffer(decrypted), name=name, onclose=onclose) return f - - |