From a677c082aeabba00a079db581bfae194d069cf11 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 9 May 2015 23:24:08 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1406 --- pyload/manager/Remote.py | 5 +++-- pyload/manager/thread/Plugin.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'pyload/manager') diff --git a/pyload/manager/Remote.py b/pyload/manager/Remote.py index 3c6dabefa..6023cdcfd 100644 --- a/pyload/manager/Remote.py +++ b/pyload/manager/Remote.py @@ -1,13 +1,14 @@ # -*- coding: utf-8 -*- # @author: RaNaN +import threading import traceback -class BackendBase(Thread): +class BackendBase(threading.Thread): def __init__(self, manager): - Thread.__init__(self) + threading.Thread.__init__(self) self.m = manager self.core = manager.core self.enabled = True diff --git a/pyload/manager/thread/Plugin.py b/pyload/manager/thread/Plugin.py index 2621bc861..0163152f3 100644 --- a/pyload/manager/thread/Plugin.py +++ b/pyload/manager/thread/Plugin.py @@ -3,6 +3,7 @@ from __future__ import with_statement +import threading import traceback from Queue import Queue @@ -21,12 +22,12 @@ from pyload.utils.packagetools import parseNames from pyload.utils import fs_join -class PluginThread(Thread): +class PluginThread(threading.Thread): """abstract base class for thread types""" def __init__(self, manager): """Constructor""" - Thread.__init__(self) + threading.Thread.__init__(self) self.setDaemon(True) self.m = manager #: thread manager -- cgit v1.2.3