diff options
author | Erik Johnston <erik@matrix.org> | 2020-05-12 11:20:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 11:20:48 +0100 |
commit | 1a1da60ad2c9172fe487cd38a164b39df60f4cb5 (patch) | |
tree | 2b2f1a2f431535f2f9088f06486c9070c3805f0c /synapse/storage/database.py | |
parent | Convert federation handler to async/await. (#7459) (diff) | |
download | synapse-1a1da60ad2c9172fe487cd38a164b39df60f4cb5.tar.xz |
Fix new flake8 errors (#7470)
Diffstat (limited to 'synapse/storage/database.py')
-rw-r--r-- | synapse/storage/database.py | 4 |
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) |