From f857330f47346c965cb1dd3ab0f2165da6cfaa6a Mon Sep 17 00:00:00 2001 From: shortcutme Date: Sun, 19 Feb 2017 12:21:55 +0100 Subject: [PATCH] Remove unnecessary imports, formatting --- plugins/FilePack/FilePackPlugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/FilePack/FilePackPlugin.py b/plugins/FilePack/FilePackPlugin.py index dfaf68ad..96927b68 100644 --- a/plugins/FilePack/FilePackPlugin.py +++ b/plugins/FilePack/FilePackPlugin.py @@ -1,21 +1,21 @@ -import time -import json import os import re from Plugin import PluginManager -from Translate import Translate from Config import config from util import helper # Keep archive open for faster reponse times for large sites archive_cache = {} + + def closeArchive(archive_path): if archive_path in archive_cache: archive_cache[archive_path].close() del archive_cache[archive_path] + def openArchive(archive_path, path_within): if archive_path not in archive_cache: if archive_path.endswith("tar.gz"): @@ -38,7 +38,7 @@ def openArchive(archive_path, path_within): @PluginManager.registerTo("UiRequest") -class UiRequestPlugin(object): # 1.87 +class UiRequestPlugin(object): def actionSiteMedia(self, path, header_length=True): if ".zip/" in path or ".tar.gz/" in path or ".tar.bz2/" in path: path_parts = self.parsePath(path)