[GRASS-SVN] r44784 - grass/branches/develbranch_6/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 29 15:48:56 EST 2010


Author: martinl
Date: 2010-12-29 12:48:56 -0800 (Wed, 29 Dec 2010)
New Revision: 44784

Modified:
   grass/branches/develbranch_6/lib/python/vector.py
Log:
pythonlib: vector_what() check for unicode type
(merge r44782 from relbr64)


Modified: grass/branches/develbranch_6/lib/python/vector.py
===================================================================
--- grass/branches/develbranch_6/lib/python/vector.py	2010-12-29 20:47:33 UTC (rev 44783)
+++ grass/branches/develbranch_6/lib/python/vector.py	2010-12-29 20:48:56 UTC (rev 44784)
@@ -262,8 +262,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