[GRASS-SVN] r62791 - grass/branches/releasebranch_7_0/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 17 19:24:44 PST 2014
Author: wenzeslaus
Date: 2014-11-17 19:24:44 -0800 (Mon, 17 Nov 2014)
New Revision: 62791
Modified:
grass/branches/releasebranch_7_0/lib/python/script/core.py
grass/branches/releasebranch_7_0/lib/python/script/db.py
Log:
pythonlib: sync minor comments and white space with trunk (no difference in lib/python/script between trunk and 70 for r62790)
Modified: grass/branches/releasebranch_7_0/lib/python/script/core.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/script/core.py 2014-11-18 03:14:20 UTC (rev 62790)
+++ grass/branches/releasebranch_7_0/lib/python/script/core.py 2014-11-18 03:24:44 UTC (rev 62791)
@@ -884,7 +884,9 @@
return False
return True
+# interface to g.gisenv
+
def gisenv():
"""Returns the output from running g.gisenv (with no arguments), as a
dictionary. Example:
Modified: grass/branches/releasebranch_7_0/lib/python/script/db.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/script/db.py 2014-11-18 03:14:20 UTC (rev 62790)
+++ grass/branches/releasebranch_7_0/lib/python/script/db.py 2014-11-18 03:24:44 UTC (rev 62791)
@@ -89,9 +89,10 @@
ok = False
finally:
nuldev.close()
-
+
return ok
+
def db_connection(force=False):
"""Return the current database connection parameters
(interface to `db.connect -g`). Example:
More information about the grass-commit
mailing list