[GRASS-SVN] r41387 - grass/trunk/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 11 17:43:59 EST 2010


Author: martinl
Date: 2010-03-11 17:43:58 -0500 (Thu, 11 Mar 2010)
New Revision: 41387

Modified:
   grass/trunk/lib/python/core.py
Log:
bugfix #995


Modified: grass/trunk/lib/python/core.py
===================================================================
--- grass/trunk/lib/python/core.py	2010-03-11 22:34:16 UTC (rev 41386)
+++ grass/trunk/lib/python/core.py	2010-03-11 22:43:58 UTC (rev 41387)
@@ -67,7 +67,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