diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-10-31 10:07:46 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-10-31 10:07:46 +0300 |
commit | 524c99afef75fd0fdb6b6450d9970398f1f0585c (patch) | |
tree | 160f3bb00717e2c3d807a55b2435be02b1312528 /sphinx/util | |
parent | c497a2867a19c0fc9b462df42fb08e85b6ce3381 (diff) |
Fix a flake8 warning
Diffstat (limited to 'sphinx/util')
-rw-r--r-- | sphinx/util/logging.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py index 337c87b92..bdf77dc07 100644 --- a/sphinx/util/logging.py +++ b/sphinx/util/logging.py @@ -369,9 +369,10 @@ def is_suppressed_warning(type: str, subtype: str, suppress_warnings: List[str]) target, subtarget = warning_type, None if target == type: - if (subtype is None and subtarget is None - or subtarget is None or - subtarget == subtype or subtarget == '*'): + if ((subtype is None and subtarget is None) or + subtarget is None or + subtarget == subtype or + subtarget == '*'): return True return False |