Prechádzať zdrojové kódy

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

Tomas Zigo 5 rokov pred
rodič
commit
815c1b77dd
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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