[GRASS-SVN] r43817 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 7 06:53:30 EDT 2010
Author: martinl
Date: 2010-10-07 10:53:30 +0000 (Thu, 07 Oct 2010)
New Revision: 43817
Modified:
grass/trunk/lib/init/grass.py
Log:
add missing warning() function
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2010-10-07 10:47:52 UTC (rev 43816)
+++ grass/trunk/lib/init/grass.py 2010-10-07 10:53:30 UTC (rev 43817)
@@ -52,6 +52,9 @@
create_new = None
grass_gui = None
+def warning(text):
+ sys.stderr.write(_("WARNING") + ': ' + text + os.linesep)
+
def try_remove(path):
try:
os.remove(path)
More information about the grass-commit
mailing list