diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-09 23:24:08 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-09 23:24:08 +0200 |
commit | a677c082aeabba00a079db581bfae194d069cf11 (patch) | |
tree | 5fa099c37aa241f9a0ef7ba6d2994b01d9e1df2f /pyload/manager | |
parent | Remove old .pot files (diff) | |
download | pyload-a677c082aeabba00a079db581bfae194d069cf11.tar.xz |
Fix https://github.com/pyload/pyload/issues/1406
Diffstat (limited to 'pyload/manager')
-rw-r--r-- | pyload/manager/Remote.py | 5 | ||||
-rw-r--r-- | pyload/manager/thread/Plugin.py | 5 |
2 files changed, 6 insertions, 4 deletions
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 |