- command.format(
- table_name=table_name,
- csvpath=csvpath,
- columns=','.join('"%s"' % c for c in column_names),
- force_not_null=force_not_null,
- )
+ command % dict(
+ table_name=table_name,
+ csvpath=csvpath,
+ columns=','.join('"%s"' % c for c in column_names),
+ force_not_null=force_not_null,