jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673466 )
Change subject: [fix] Simplify if-expression
......................................................................
[fix] Simplify if-expression
Change-Id: I0da2b5997ab0a40fd7d58f3a430e0757d63ee66b
---
M pywikibot/cosmetic_changes.py
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
Matěj Suchánek: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
index 97bbfe3..f80e5a3 100755
--- a/pywikibot/cosmetic_changes.py
+++ b/pywikibot/cosmetic_changes.py
@@ -1081,5 +1081,4 @@
def fix_ISBN(self, text):
"""Hyphenate ISBN numbers."""
- return _reformat_ISBNs(
- text, strict=False if self.ignore == CANCEL_MATCH else True)
+ return _reformat_ISBNs(text, strict=self.ignore != CANCEL_MATCH)
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/673466
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0da2b5997ab0a40fd7d58f3a430e0757d63ee66b
Gerrit-Change-Number: 673466
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged