diff options
author | David Baker <dave@matrix.org> | 2015-01-28 14:48:07 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-01-28 14:48:07 +0000 |
commit | fb0928097a0dc1606aebb9aed8f070bcea304178 (patch) | |
tree | 2f4b5d14e8d75cfc9131cdabf6961cc77abe0e43 | |
parent | Google doc style (diff) | |
download | synapse-fb0928097a0dc1606aebb9aed8f070bcea304178.tar.xz |
More magic commas (including the place I copied it from...)
-rw-r--r-- | synapse/storage/_base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 809c81f47f..9261c999cb 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -210,8 +210,8 @@ class SQLBaseStore(object): # Try to update sql = "UPDATE %s SET %s WHERE %s" % ( table, - ", ".join("%s = ?" % (k) for k in values), - " AND ".join("%s = ?" % (k) for k in keyvalues) + ", ".join("%s = ?" % (k,) for k in values), + " AND ".join("%s = ?" % (k,) for k in keyvalues) ) sqlargs = values.values() + keyvalues.values() logger.debug( @@ -390,8 +390,8 @@ class SQLBaseStore(object): if updatevalues: update_sql = "UPDATE %s SET %s WHERE %s" % ( table, - ", ".join("%s = ?" % (k) for k in updatevalues), - " AND ".join("%s = ?" % (k) for k in keyvalues) + ", ".join("%s = ?" % (k,) for k in updatevalues), + " AND ".join("%s = ?" % (k,) for k in keyvalues) ) def func(txn): |