Use six module

This commit is contained in:
Ruud
2014-10-06 17:30:58 +02:00
parent c50c290c3e
commit 97099f4d69
13 changed files with 50 additions and 40 deletions
@@ -1,5 +1,5 @@
from datetime import timedelta, datetime
from urlparse import urlparse
from six.moves import urllib
import traceback
from couchpotato.core.helpers.variable import cleanHost
@@ -106,7 +106,7 @@ class PlexServer(object):
def createHost(self, host, port = None):
h = cleanHost(host)
p = urlparse(h)
p = urllib.urlparse(h)
h = h.rstrip('/')
if port and not p.port: