ruff: Fix PLR1714 Consider merging multiple comparisons.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 2ae285af7c)
This commit is contained in:
Anders Kaseorg
2023-07-21 16:15:10 -07:00
committed by Alex Vandiver
parent b9aa772885
commit 91e5ef39eb
18 changed files with 41 additions and 56 deletions

View File

@@ -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: