jenkins-bot has submitted this change and it was merged.
Change subject: Fix function not being defined
......................................................................
Fix function not being defined
Change-Id: I4b8bc9f25dda5725fa4d25d59d3e39f98f8fc084
---
M pywikibot/page.py
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py
index 0c28043..3883961 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -787,7 +787,7 @@
return False
else:
bots = template[1][0].split(',')
- if 'all' in bots or calledModuleName() in bots \
+ if 'all' in bots or pywikibot.calledModuleName() in bots \
or username in bots:
return False
elif title == 'Bots':
@@ -801,9 +801,9 @@
if ttype == 'deny':
return not ('all' in bots or username in bots)
if ttype == 'allowscript':
- return 'all' in bots or calledModuleName() in bots
+ return 'all' in bots or pywikibot.calledModuleName() in
bots
if ttype == 'denyscript':
- return not ('all' in bots or calledModuleName() in bots)
+ return not ('all' in bots or pywikibot.calledModuleName()
in bots)
# no restricting template found
return True
--
To view, visit
https://gerrit.wikimedia.org/r/134052
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4b8bc9f25dda5725fa4d25d59d3e39f98f8fc084
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>