[GRASS-SVN] r72799 - grass/trunk/scripts/v.db.dropcolumn

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 11 17:54:29 PDT 2018


Author: annakrat
Date: 2018-06-11 17:54:29 -0700 (Mon, 11 Jun 2018)
New Revision: 72799

Modified:
   grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py
Log:
v.db.dropcolumn: fix mixed tab/spaces indentation

Modified: grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py
===================================================================
--- grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py	2018-06-12 00:49:22 UTC (rev 72798)
+++ grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py	2018-06-12 00:54:29 UTC (rev 72799)
@@ -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