[GRASS-SVN] r34939 - grass/trunk/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 19 15:41:47 EST 2008


Author: glynn
Date: 2008-12-19 15:41:47 -0500 (Fri, 19 Dec 2008)
New Revision: 34939

Modified:
   grass/trunk/lib/python/grass.py
Log:
Python has a distinct boolean type


Modified: grass/trunk/lib/python/grass.py
===================================================================
--- grass/trunk/lib/python/grass.py	2008-12-19 20:36:57 UTC (rev 34938)
+++ grass/trunk/lib/python/grass.py	2008-12-19 20:41:47 UTC (rev 34939)
@@ -526,10 +526,10 @@
     current_mapset = gisenv()['MAPSET']
     if find_file(name = map)['mapset'] == current_mapset:
         run_command('r.support', map = map, history = os.environ['CMDLINE'])
-        return 1
+        return True
     
     warning("Unable to write history for <%s>. Raster map <%s> not found in current mapset." % (map, map))
-    return 0
+    return False
     
 # run "r.info -rgstmpud ..." and parse output
 



More information about the grass-commit mailing list