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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 17 20:43:21 PDT 2014


Author: wenzeslaus
Date: 2014-07-17 20:43:21 -0700 (Thu, 17 Jul 2014)
New Revision: 61272

Modified:
   grass/trunk/lib/python/script/core.py
Log:
pythonlib/script: return debug level also for the first invocation (inconsistent undocumented function return values inconsitency found by python -3 option used in tests - None > 0 is DeprecationWarning in 2.7, TypeError in 3.x)

Modified: grass/trunk/lib/python/script/core.py
===================================================================
--- grass/trunk/lib/python/script/core.py	2014-07-17 22:14:46 UTC (rev 61271)
+++ grass/trunk/lib/python/script/core.py	2014-07-18 03:43:21 UTC (rev 61272)
@@ -1734,6 +1734,7 @@
     _debug_level = 0
     if find_program('g.gisenv', '--help'):
         _debug_level = int(gisenv().get('DEBUG', 0))
+    return _debug_level
 
 
 def legal_name(s):



More information about the grass-commit mailing list