summaryrefslogtreecommitdiffstats
path: root/pyload/Thread/Plugin.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 02:17:30 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 03:22:32 +0200
commit000426c9d890ba2a71625a7454f9c573f10b9bae (patch)
tree8fa66da5061b850778f72f84038d9bb8bfa31f2f /pyload/Thread/Plugin.py
parent'from os' -> 'import os' and so on... (diff)
downloadpyload-000426c9d890ba2a71625a7454f9c573f10b9bae.tar.xz
'from time' -> 'import time' and so on...
Diffstat (limited to 'pyload/Thread/Plugin.py')
-rw-r--r--pyload/Thread/Plugin.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/Thread/Plugin.py b/pyload/Thread/Plugin.py
index 264deb84c..9d61c9a12 100644
--- a/pyload/Thread/Plugin.py
+++ b/pyload/Thread/Plugin.py
@@ -5,13 +5,13 @@ from __future__ import with_statement
import os
import threading
+import time
import traceback
from Queue import Queue
from copy import copy
from pprint import pformat
from sys import exc_info, exc_clear
-from time import sleep, time, strftime, gmtime
from types import MethodType
from pyload.api import OnlineStatus
@@ -36,7 +36,7 @@ class PluginThread(threading.Thread):
:return:
"""
- dump_name = "debug_%s_%s.zip" % (pyfile.pluginname, strftime("%d-%m-%Y_%H-%M-%S"))
+ dump_name = "debug_%s_%s.zip" % (pyfile.pluginname, time.strftime("%d-%m-%Y_%H-%M-%S"))
dump = self.getDebugDump(pyfile)
try:
@@ -51,7 +51,7 @@ class PluginThread(threading.Thread):
except Exception:
pass
- info = zipfile.ZipInfo(fs_join(pyfile.pluginname, "debug_Report.txt"), gmtime())
+ info = zipfile.ZipInfo(fs_join(pyfile.pluginname, "debug_Report.txt"), time.gmtime())
info.external_attr = 0644 << 16L #: change permissions
zip.writestr(info, dump)