path: root/pykolab/setup/
diff options
authorChristoph Erhardt <>2022-03-13 20:29:43 +0100
committerChristoph Erhardt <>2022-03-13 20:30:08 +0100
commit4284cf68711b43f5702c375951eb00ff98143f00 (patch)
treed79bee5955634815e619c1e3973afe5d435ab4ba /pykolab/setup/
parent1c05e8070e7a2ebb8054f0461912d71b9efb8831 (diff)
[Python3] changed module names
Summary: ConfigParser -> configparser urlparse -> urllib.parse Test Plan: todo: test with python2 Reviewers: #pykolab, #pykolab_developers, sicherha Reviewed By: #pykolab_developers, sicherha Subscribers: ghane, sicherha Differential Revision:
Diffstat (limited to 'pykolab/setup/')
1 files changed, 8 insertions, 2 deletions
diff --git a/pykolab/setup/ b/pykolab/setup/
index 3138226..09203a6 100644
--- a/pykolab/setup/
+++ b/pykolab/setup/
@@ -17,12 +17,18 @@
# along with this program. If not, see <>.
-from ConfigParser import RawConfigParser
+ from ConfigParser import RawConfigParser
+except ImportError:
+ from configparser import RawConfigParser
import os
import sys
import time
import socket
-from urlparse import urlparse
+ from urlparse import urlparse
+except ImportError:
+ from urllib.parse import urlparse
import components