[GRASS-SVN] r72849 - grass/branches/releasebranch_7_4/scripts/v.db.dropcolumn
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 16 01:47:58 PDT 2018
Author: neteler
Date: 2018-06-16 01:47:58 -0700 (Sat, 16 Jun 2018)
New Revision: 72849
Modified:
grass/branches/releasebranch_7_4/scripts/v.db.dropcolumn/v.db.dropcolumn.py
Log:
v.db.dropcolumn: fix mixed tab/spaces indentation (trunk, r72799)
Modified: grass/branches/releasebranch_7_4/scripts/v.db.dropcolumn/v.db.dropcolumn.py
===================================================================
--- grass/branches/releasebranch_7_4/scripts/v.db.dropcolumn/v.db.dropcolumn.py 2018-06-16 08:47:21 UTC (rev 72848)
+++ grass/branches/releasebranch_7_4/scripts/v.db.dropcolumn/v.db.dropcolumn.py 2018-06-16 08:47:58 UTC (rev 72849)
@@ -89,12 +89,12 @@
if f[0] == column:
continue
colnames.append(f[0])
- # see db_sqltype_name() for type names
- if f[1] == "CHARACTER":
- # preserve field length for sql type "CHARACTER"
- coltypes.append("%s %s(%s)" % (f[0], f[1], f[2]))
- else:
- coltypes.append("%s %s" % (f[0], f[1]))
+ # see db_sqltype_name() for type names
+ if f[1] == "CHARACTER":
+ # preserve field length for sql type "CHARACTER"
+ coltypes.append("%s %s(%s)" % (f[0], f[1], f[2]))
+ else:
+ coltypes.append("%s %s" % (f[0], f[1]))
colnames = ", ".join(colnames)
coltypes = ", ".join(coltypes)
More information about the grass-commit
mailing list