jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1338028?usp=email )
Change subject: site: Simplify patrol identifier guard
......................................................................
site: Simplify patrol identifier guard
Change-Id: I6af7e1f0598c2a049b6f0b0fe981670a287db5bc
---
M pywikibot/site/_generators.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site/_generators.py b/pywikibot/site/_generators.py
index ff1a48e..8857675 100644
--- a/pywikibot/site/_generators.py
+++ b/pywikibot/site/_generators.py
@@ -2119,7 +2119,7 @@
if hasattr(self, '_patroldisabled') and self._patroldisabled:
return
- if all(_ is None for _ in [rcid, revid, revision]):
+ if rcid is None and revid is None and revision is None:
raise Error('No rcid, revid or revision provided.')
if rcid is None:
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1338028?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I6af7e1f0598c2a049b6f0b0fe981670a287db5bc
Gerrit-Change-Number: 1338028
Gerrit-PatchSet: 2
Gerrit-Owner: Mahveotm <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]