mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
ruff: Fix PLR1714 Consider merging multiple comparisons.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
3b09197fdf
commit
2ae285af7c
@@ -147,7 +147,7 @@ def find_log_origin(record: logging.LogRecord) -> str:
|
||||
|
||||
if settings.LOGGING_SHOW_MODULE:
|
||||
module_name = find_log_caller_module(record)
|
||||
if module_name == logger_name or module_name == record.name:
|
||||
if module_name in (logger_name, record.name):
|
||||
# Abbreviate a bit.
|
||||
pass
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user