mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
python: Remove default "utf8" argument for encode(), decode().
Partially generated by pyupgrade. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
1760897a8c
commit
ad5f0c05b5
@@ -162,7 +162,7 @@ def queries_captured(
|
||||
if include_savepoints or not isinstance(sql, str) or "SAVEPOINT" not in sql:
|
||||
queries.append(
|
||||
{
|
||||
"sql": self.mogrify(sql, params).decode("utf-8"),
|
||||
"sql": self.mogrify(sql, params).decode(),
|
||||
"time": f"{duration:.3f}",
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user