[schema2sql] Drop unused indent argument on aschema2sql
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 13 Jul 2016 12:17:37 +0200
changeset 11409 218815f40576
parent 11408 5be298ed4caa
child 11410 5e449033adcc
[schema2sql] Drop unused indent argument on aschema2sql Related to #14050899
cubicweb/server/schema2sql.py
--- a/cubicweb/server/schema2sql.py	Thu Jun 30 13:26:36 2016 +0200
+++ b/cubicweb/server/schema2sql.py	Wed Jul 13 12:17:37 2016 +0200
@@ -153,8 +153,7 @@
     for i in range(len(attrs)):
         rschema, attrschema = attrs[i]
         if attrschema is not None:
-            sqltype = aschema2sql(dbhelper, eschema, rschema, attrschema,
-                                  indent=' ')
+            sqltype = aschema2sql(dbhelper, eschema, rschema, attrschema)
         else:  # inline relation
             sqltype = 'integer REFERENCES entities (eid)'
         if i == len(attrs) - 1:
@@ -234,7 +233,7 @@
     return None, None
 
 
-def aschema2sql(dbhelper, eschema, rschema, aschema, creating=True, indent=''):
+def aschema2sql(dbhelper, eschema, rschema, aschema, creating=True):
     """Return string containing a SQL table's column definition from attribute schema."""
     attr = rschema.type
     rdef = rschema.rdef(eschema.type, aschema.type)