[X2Go-Commits] [python-x2go] 04/07: x2go/inifiles.py: Correctly import ConfigParser as configparser on Python2.
git-admin at x2go.org
git-admin at x2go.org
Tue Sep 18 18:45:38 CEST 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository python-x2go.
commit 29006c68ff5212da3a57c36f9ada236376bb37ae
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Sep 18 16:24:08 2018 +0000
x2go/inifiles.py: Correctly import ConfigParser as configparser on Python2.
---
x2go/inifiles.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/x2go/inifiles.py b/x2go/inifiles.py
index 7531ef0..f2c5928 100644
--- a/x2go/inifiles.py
+++ b/x2go/inifiles.py
@@ -35,7 +35,10 @@ __name__ = 'x2go.inifiles'
# modules
import os
-import configparser
+try:
+ import configparser
+except:
+ import ConfigParser as configparser
import types
import io
import copy
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/python-x2go.git
More information about the x2go-commits
mailing list