Skip to content

Commit

Permalink
Merge pull request #9803 from tk0miya/fix-flake8-error
Browse files Browse the repository at this point in the history
Fix flake8 error
  • Loading branch information
tk0miya committed Oct 31, 2021
2 parents c497a28 + 524c99a commit 8dd84bc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sphinx/util/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8dd84bc

Please sign in to comment.