Commit 6a7c4a5e authored by Sofa Cough's avatar Sofa Cough
Browse files

fix urllib import and usage

parent 053ade3e
......@@ -19,7 +19,7 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import os.path
import time
import urllib
from urllib.parse import urlparse
import xmlrpc.client
import xmlrpc.server
......@@ -56,7 +56,7 @@ class RTorrent:
self.username = username
self.password = password
self.schema = urllib.splittype(uri)[0]
self.schema = urlparse(uri).scheme
if sp:
self.sp = sp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment