summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-05-12 11:20:48 +0100
committerGitHub <noreply@github.com>2020-05-12 11:20:48 +0100
commit1a1da60ad2c9172fe487cd38a164b39df60f4cb5 (patch)
tree2b2f1a2f431535f2f9088f06486c9070c3805f0c /synapse/storage
parentConvert federation handler to async/await. (#7459) (diff)
downloadsynapse-1a1da60ad2c9172fe487cd38a164b39df60f4cb5.tar.xz
Fix new flake8 errors (#7470)
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/database.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/database.py b/synapse/storage/database.py
index 2b635d6ca0..c3d0863429 100644
--- a/synapse/storage/database.py
+++ b/synapse/storage/database.py
@@ -214,9 +214,9 @@ class LoggingTransaction:
     def executemany(self, sql: str, *args: Any):
         self._do_execute(self.txn.executemany, sql, *args)
 
-    def _make_sql_one_line(self, sql):
+    def _make_sql_one_line(self, sql: str) -> str:
         "Strip newlines out of SQL so that the loggers in the DB are on one line"
-        return " ".join(l.strip() for l in sql.splitlines() if l.strip())
+        return " ".join(line.strip() for line in sql.splitlines() if line.strip())
 
     def _do_execute(self, func, sql, *args):
         sql = self._make_sql_one_line(sql)