Make this use of urlparse.urlparse Python 3 compatible.

This commit is contained in:
Roy Wellington Ⅳ
2016-02-07 12:56:07 -08:00
parent fa926f9ada
commit f9327d5535
+2 -2
View File
@@ -1,8 +1,8 @@
"""Let's Encrypt user-supplied configuration."""
import copy
import os
import urlparse
from six.moves.urllib import parse # pylint: disable=import-error
import zope.interface
from letsencrypt import constants
@@ -50,7 +50,7 @@ class NamespaceConfig(object):
@property
def server_path(self):
"""File path based on ``server``."""
parsed = urlparse.urlparse(self.namespace.server)
parsed = parse.urlparse(self.namespace.server)
return (parsed.netloc + parsed.path).replace('/', os.path.sep)
@property