Explorar o código

remove redundant encode string call in the error message string interpolation (#308)

Tomas Zigo %!s(int64=5) %!d(string=hai) anos
pai
achega
8150805186
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/python/script/task.py

+ 1 - 1
lib/python/script/task.py

@@ -201,7 +201,7 @@ class grassTask:
                     if not desc:
                         desc = p['description']
                     errorList.append(_("Parameter '%(name)s' (%(desc)s) is missing.") % \
-                                     {'name': p['name'], 'desc': encode(desc)})
+                                     {'name': p['name'], 'desc': desc})
 
         return errorList