瀏覽代碼

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)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61272 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 10 年之前
父節點
當前提交
c0a9e4d90f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/python/script/core.py

+ 1 - 0
lib/python/script/core.py

@@ -1734,6 +1734,7 @@ def debug_level():
     _debug_level = 0
     if find_program('g.gisenv', '--help'):
         _debug_level = int(gisenv().get('DEBUG', 0))
+    return _debug_level
 
 
 def legal_name(s):