[GRASS-SVN] r63385 - grass/trunk/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 5 10:47:44 PST 2014


Author: neteler
Date: 2014-12-05 10:47:44 -0800 (Fri, 05 Dec 2014)
New Revision: 63385

Modified:
   grass/trunk/lib/python/script/core.py
Log:
libpython make_command(): say in msg which module call needs an update

Modified: grass/trunk/lib/python/script/core.py
===================================================================
--- grass/trunk/lib/python/script/core.py	2014-12-05 18:37:38 UTC (rev 63384)
+++ grass/trunk/lib/python/script/core.py	2014-12-05 18:47:44 UTC (rev 63385)
@@ -280,11 +280,11 @@
         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)))



More information about the grass-commit mailing list