From f8cf65d4271254dd89662cb6190adc5b426c6d2b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 02:44:03 +0200 Subject: 'from time' -> 'import time' and so on... (2) --- pyload/Thread/Plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyload/Thread/Plugin.py') diff --git a/pyload/Thread/Plugin.py b/pyload/Thread/Plugin.py index 9d61c9a12..c7350a735 100644 --- a/pyload/Thread/Plugin.py +++ b/pyload/Thread/Plugin.py @@ -4,6 +4,7 @@ from __future__ import with_statement import os +import sys import threading import time import traceback @@ -11,7 +12,6 @@ import traceback from Queue import Queue from copy import copy from pprint import pformat -from sys import exc_info, exc_clear from types import MethodType from pyload.api import OnlineStatus @@ -74,7 +74,7 @@ class PluginThread(threading.Thread): dump = "pyLoad %s Debug Report of %s %s \n\nTRACEBACK:\n %s \n\nFRAMESTACK:\n" % ( self.m.core.api.getServerVersion(), pyfile.pluginname, pyfile.plugin.__version, traceback.format_exc()) - tb = exc_info()[2] + tb = sys.exc_info()[2] stack = [] while tb: stack.append(tb.tb_frame) -- cgit v1.2.3