Преглед изворни кода

libpython make_command(): say in msg which module call needs an update

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63385 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler пре 10 година
родитељ
комит
3d71245dea
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      lib/python/script/core.py

+ 2 - 2
lib/python/script/core.py

@@ -280,11 +280,11 @@ def make_command(prog, flags="", overwrite=False, quiet=False, verbose=False,
         if val != None:
             if opt.startswith('_'):
                 opt = opt[1:]
-                warning(_("To run the module add underscore at the end"
+                warning(_("To run the module <%s> add underscore at the end"
                     " of the option <%s> to avoid conflict with Python"
                     " keywords. Underscore at the beginning is"
                     " depreciated in GRASS GIS 7.0 and will be removed"
-                    " in version 7.1.") % opt)
+                    " in version 7.1.") % (prog, opt))
             elif opt.endswith('_'):
                 opt = opt[:-1]
             args.append("%s=%s" % (opt, _make_val(val)))