mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use six.moves.urllib instead of urllib/urllib2/urlparse
In Python 3, these modules are reorganized. Reviewed-By: David Kupka <dkupka@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
committed by
Jan Cholasta
parent
7f1204a42c
commit
70b37a956c
@@ -20,7 +20,8 @@
|
||||
import os
|
||||
import tempfile
|
||||
import shutil
|
||||
import urlparse
|
||||
|
||||
from six.moves.urllib.parse import urlsplit
|
||||
|
||||
from ipapython import (admintool, ipautil, ipaldap, sysrestore, dogtag,
|
||||
certmonger, certdb)
|
||||
@@ -51,7 +52,7 @@ class CertUpdate(admintool.AdminTool):
|
||||
api.bootstrap(context='cli_installer')
|
||||
api.finalize()
|
||||
|
||||
server = urlparse.urlsplit(api.env.jsonrpc_uri).hostname
|
||||
server = urlsplit(api.env.jsonrpc_uri).hostname
|
||||
ldap = ipaldap.IPAdmin(server)
|
||||
|
||||
tmpdir = tempfile.mkdtemp(prefix="tmp-")
|
||||
|
||||
Reference in New Issue
Block a user