jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323964?usp=email )
Change subject: archivebot: Remove redundant global declaration
......................................................................
archivebot: Remove redundant global declaration
process_page() only reads outlock. Python resolves it at module scope without a
global statement.
Change-Id: Ib768563529c90043120f2770bf0957292a39c76e
---
M scripts/archivebot.py
1 file changed, 0 insertions(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/archivebot.py b/scripts/archivebot.py
index efa68af..e21db90 100755
--- a/scripts/archivebot.py
+++ b/scripts/archivebot.py
@@ -984,7 +984,6 @@
.. version-changed:: 10.0
*asynchronous* parameter was added.
"""
- global outlock
if not page.exists():
pywikibot.info(f'{page} does not exist, skipping...')
return True
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323964?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: Ib768563529c90043120f2770bf0957292a39c76e
Gerrit-Change-Number: 1323964
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]