[GRASS-SVN] r41391 - grass/branches/releasebranch_6_4/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 12 07:28:12 EST 2010


Author: martinl
Date: 2010-03-12 07:28:10 -0500 (Fri, 12 Mar 2010)
New Revision: 41391

Modified:
   grass/branches/releasebranch_6_4/lib/python/core.py
Log:
bugfix #995
(merge r41387 from trunk)


Modified: grass/branches/releasebranch_6_4/lib/python/core.py
===================================================================
--- grass/branches/releasebranch_6_4/lib/python/core.py	2010-03-12 12:03:36 UTC (rev 41390)
+++ grass/branches/releasebranch_6_4/lib/python/core.py	2010-03-12 12:28:10 UTC (rev 41391)
@@ -64,7 +64,8 @@
 	       "universal_newlines", "startupinfo", "creationflags"]
 
 def _make_val(val):
-    if isinstance(val, types.StringType):
+    if isinstance(val, types.StringType) or \
+            isinstance(val, types.UnicodeType):
 	return val
     if isinstance(val, types.ListType):
 	return ",".join(map(_make_val, val))



More information about the grass-commit mailing list