summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/setup_freebusy.py
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2022-03-13 20:29:43 +0100
committerChristoph Erhardt <kolab@sicherha.de>2022-03-13 20:30:08 +0100
commit4284cf68711b43f5702c375951eb00ff98143f00 (patch)
treed79bee5955634815e619c1e3973afe5d435ab4ba /pykolab/setup/setup_freebusy.py
parent1c05e8070e7a2ebb8054f0461912d71b9efb8831 (diff)
downloadpykolab-4284cf68711b43f5702c375951eb00ff98143f00.tar.gz
[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: https://git.kolab.org/D3355
Diffstat (limited to 'pykolab/setup/setup_freebusy.py')
-rw-r--r--pykolab/setup/setup_freebusy.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/pykolab/setup/setup_freebusy.py b/pykolab/setup/setup_freebusy.py
index 3138226..09203a6 100644
--- a/pykolab/setup/setup_freebusy.py
+++ b/pykolab/setup/setup_freebusy.py
@@ -17,12 +17,18 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-from ConfigParser import RawConfigParser
+try:
+ from ConfigParser import RawConfigParser
+except ImportError:
+ from configparser import RawConfigParser
import os
import sys
import time
import socket
-from urlparse import urlparse
+try:
+ from urlparse import urlparse
+except ImportError:
+ from urllib.parse import urlparse
import components