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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 29 15:45:24 EST 2010


Author: martinl
Date: 2010-12-29 12:45:24 -0800 (Wed, 29 Dec 2010)
New Revision: 44782

Modified:
   grass/branches/releasebranch_6_4/lib/python/vector.py
Log:
pythonlib: vector_what() check for unicode type


Modified: grass/branches/releasebranch_6_4/lib/python/vector.py
===================================================================
--- grass/branches/releasebranch_6_4/lib/python/vector.py	2010-12-29 20:37:47 UTC (rev 44781)
+++ grass/branches/releasebranch_6_4/lib/python/vector.py	2010-12-29 20:45:24 UTC (rev 44782)
@@ -263,8 +263,8 @@
     if os.environ.has_key("LC_ALL"):
         locale = os.environ["LC_ALL"]
         os.environ["LC_ALL"] = "C"
-    
-    if type(name) is types.StringType:
+
+    if type(name) in (types.StringType, types.UnicodeType):
         name_list = [name]
     else:
         name_list = name



More information about the grass-commit mailing list