diff options
author | 2015-05-12 02:44:03 +0200 | |
---|---|---|
committer | 2015-05-12 03:22:38 +0200 | |
commit | f8cf65d4271254dd89662cb6190adc5b426c6d2b (patch) | |
tree | 3197abaa2f3a7f1fdc4f2edcd1844087780c066a /pyload/manager | |
parent | 'from time' -> 'import time' and so on... (diff) | |
download | pyload-f8cf65d4271254dd89662cb6190adc5b426c6d2b.tar.xz |
'from time' -> 'import time' and so on... (2)
Diffstat (limited to 'pyload/manager')
-rw-r--r-- | pyload/manager/Plugin.py | 1 | ||||
-rw-r--r-- | pyload/manager/Thread.py | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/pyload/manager/Plugin.py b/pyload/manager/Plugin.py index 36213eb7a..02ecc89a5 100644 --- a/pyload/manager/Plugin.py +++ b/pyload/manager/Plugin.py @@ -9,7 +9,6 @@ import traceback import urllib from itertools import chain -from sys import version_info from SafeEval import const_eval as literal_eval diff --git a/pyload/manager/Thread.py b/pyload/manager/Thread.py index 0acfd4751..b80c5594a 100644 --- a/pyload/manager/Thread.py +++ b/pyload/manager/Thread.py @@ -4,15 +4,13 @@ import os import random import re +import subprocess import threading import time import traceback import pycurl -from random import choice -from subprocess import Popen - from pyload.Datatype import PyFile from pyload.Thread import DecrypterThread, DownloadThread, InfoThread from pyload.network.RequestFactory import getURL @@ -181,7 +179,7 @@ class ThreadManager(object): self.core.log.debug("Old IP: %s" % ip) try: - reconn = Popen(self.core.config.get("reconnect", "method"), bufsize=-1, shell=True) # , stdout=subprocess.PIPE) + reconn = subprocess.Popen(self.core.config.get("reconnect", "method"), bufsize=-1, shell=True) # , stdout=subprocess.PIPE) except Exception: self.core.log.warning(_("Failed executing reconnect script!")) self.core.config.set("reconnect", "activated", False) |