[X2Go-Commits] [python-x2go] 01/03: only convert string values to unicode

git-admin at x2go.org git-admin at x2go.org
Tue Mar 18 01:05:58 CET 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch brokerclient
in repository python-x2go.

commit d3917a53d1d14fefad4f85f62772b1d93ce0b829
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Thu Mar 13 00:02:52 2014 +0100

    only convert string values to unicode
---
 x2go/backends/profiles/base.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/x2go/backends/profiles/base.py b/x2go/backends/profiles/base.py
index 541e521..4a59692 100644
--- a/x2go/backends/profiles/base.py
+++ b/x2go/backends/profiles/base.py
@@ -240,7 +240,10 @@ class X2GoSessionProfiles():
                             _export_path = ':'.join(_path.split(':')[:-1])
                             value[_export_path] = _auto_export_path
 
-                return unicode(value)
+                if type(value) is types.StringType:
+                    value = unicode(value)
+
+                return value
 
             else:
                 raise X2GoProfileException('no such session profile parameter: %s' % parameter)

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/python-x2go.git



More information about the x2go-commits mailing list