summaryrefslogtreecommitdiffstats
path: root/pyload/manager/Remote.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-01 18:11:25 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-01 18:11:25 +0200
commitc126f738bd5be581d5321521eedc9b14a8165a0e (patch)
tree418989bfa81bfd30085f09102df53f6f58b00f14 /pyload/manager/Remote.py
parentUse 'import' instead 'from' (1) (diff)
downloadpyload-c126f738bd5be581d5321521eedc9b14a8165a0e.tar.xz
Use 'import' instead 'from' (2)
Diffstat (limited to 'pyload/manager/Remote.py')
-rw-r--r--pyload/manager/Remote.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pyload/manager/Remote.py b/pyload/manager/Remote.py
index c2d254932..3c6dabefa 100644
--- a/pyload/manager/Remote.py
+++ b/pyload/manager/Remote.py
@@ -1,8 +1,7 @@
# -*- coding: utf-8 -*-
# @author: RaNaN
-from threading import Thread
-from traceback import print_exc
+import traceback
class BackendBase(Thread):
@@ -22,7 +21,7 @@ class BackendBase(Thread):
except Exception, e:
self.core.log.error(_("Remote backend error: %s") % e)
if self.core.debug:
- print_exc()
+ traceback.print_exc()
finally:
self.running = False
@@ -77,7 +76,7 @@ class RemoteManager(object):
except Exception, e:
self.core.log.error(_("Failed loading backend %(name)s | %(error)s") % {"name": b, "error": str(e)})
if self.core.debug:
- print_exc()
+ traceback.print_exc()
else:
backend.start()
self.backends.append(backend)