diff options
Diffstat (limited to 'pyload/plugin/hoster')
-rw-r--r-- | pyload/plugin/hoster/LuckyShareNet.py | 3 | ||||
-rw-r--r-- | pyload/plugin/hoster/Xdcc.py | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/pyload/plugin/hoster/LuckyShareNet.py b/pyload/plugin/hoster/LuckyShareNet.py index b199ab468..d07500d93 100644 --- a/pyload/plugin/hoster/LuckyShareNet.py +++ b/pyload/plugin/hoster/LuckyShareNet.py @@ -2,10 +2,9 @@ import re -from bottle import json_loads - from pyload.plugin.captcha.ReCaptcha import ReCaptcha from pyload.plugin.internal.SimpleHoster import SimpleHoster +from pyload.utils import json_loads class LuckyShareNet(SimpleHoster): diff --git a/pyload/plugin/hoster/Xdcc.py b/pyload/plugin/hoster/Xdcc.py index d7593a936..85f416aba 100644 --- a/pyload/plugin/hoster/Xdcc.py +++ b/pyload/plugin/hoster/Xdcc.py @@ -1,13 +1,12 @@ # -*- coding: utf-8 -*- import re +import select import socket import struct import sys import time -from select import select - from pyload.plugin.Hoster import Hoster from pyload.utils import fs_join @@ -120,7 +119,7 @@ class Xdcc(Hoster): sock.close() self.fail(_("XDCC Bot did not answer")) - fdset = select([sock], [], [], 0) + fdset = select.select([sock], [], [], 0) if sock not in fdset[0]: continue |