[GRASS-SVN] r65789 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 29 07:07:15 PDT 2015
Author: zarch
Date: 2015-07-29 07:07:15 -0700 (Wed, 29 Jul 2015)
New Revision: 65789
Modified:
grass/trunk/lib/python/script/db.py
Log:
scipt:db add python3 support
Modified: grass/trunk/lib/python/script/db.py
===================================================================
--- grass/trunk/lib/python/script/db.py 2015-07-29 14:06:41 UTC (rev 65788)
+++ grass/trunk/lib/python/script/db.py 2015-07-29 14:07:15 UTC (rev 65789)
@@ -18,9 +18,9 @@
.. sectionauthor:: Glynn Clements
.. sectionauthor:: Martin Landa <landa.martin gmail.com>
"""
-
-from core import *
-from utils import try_remove
+from __future__ import absolute_import
+from .core import *
+from .utils import try_remove
from grass.exceptions import CalledModuleError
@@ -110,7 +110,7 @@
if not conn and force:
run_command('db.connect', flags='c')
conn = parse_command('db.connect', flags='g')
-
+
return conn
def db_select(sql=None, filename=None, table=None, **args):
More information about the grass-commit
mailing list