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
pywikibot-commits@lists.wikimedia.org