[GRASS-SVN] r67262 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 19 19:10:08 PST 2015
Author: annakrat
Date: 2015-12-19 19:10:08 -0800 (Sat, 19 Dec 2015)
New Revision: 67262
Modified:
grass/trunk/lib/python/script/task.py
Log:
task.py: fix encoding again (#2827)
Modified: grass/trunk/lib/python/script/task.py
===================================================================
--- grass/trunk/lib/python/script/task.py 2015-12-20 02:05:50 UTC (rev 67261)
+++ grass/trunk/lib/python/script/task.py 2015-12-20 03:10:08 UTC (rev 67262)
@@ -32,7 +32,7 @@
else:
ETREE_EXCEPTIONS = (expat.ExpatError)
-from utils import decode, split
+from utils import encode, decode, split
from core import *
@@ -200,7 +200,7 @@
if not desc:
desc = p['description']
errorList.append(_("Parameter '%(name)s' (%(desc)s) is missing.") % \
- {'name': p['name'], 'desc': desc.encode('utf-8')})
+ {'name': p['name'], 'desc': encode(desc)})
return errorList
More information about the grass-commit
mailing list