joeycarmello/Project-Management — comment on commit dc8956b8ba2aa0ce27fc386d23cf278559bbe07d
File: tools/fixture_gen.py line 45
By joeycarmello:

You could whip out some functional chops and do it in one line:
print 'INSERT INTO `%s` (%s) values (%s);' % (table, ", ".join(map(lambda x: "`%s`" % x, row.keys())), ", ".join(map(lambda x: "'%s'" % x, row.values())))