jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] Page: Lowercase shortcuts to identify which option is default ......................................................................
[FIX] Page: Lowercase shortcuts to identify which option is default
Change-Id: Ida27d3bbadcd63a35058598153c114bbf5c43ae1 --- M pywikibot/page.py 1 file changed, 8 insertions(+), 8 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index 17d99f7..9d06658 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -1476,12 +1476,12 @@ u'Do you want to delete %s?' % self.title( asLink=True, forceInterwiki=True), ['Yes', 'No', 'All'], - ['Y', 'N', 'A'], - 'N') - if answer in ['a', 'A']: + ['y', 'n', 'a'], + 'n') + if answer == 'a': answer = 'y' self.site._noDeletePrompt = True - if answer in ['y', 'Y']: + if answer == 'y': return self.site.deletepage(self, reason) else: # Otherwise mark it for deletion if mark or hasattr(self.site, '_noMarkDeletePrompt'): @@ -1492,12 +1492,12 @@ "for deletion instead?" % self.title(asLink=True, forceInterwiki=True), ['Yes', 'No', 'All'], - ['Y', 'N', 'A'], - 'N') - if answer in ['a', 'A']: + ['y', 'n', 'a'], + 'n') + if answer == 'a': answer = 'y' self.site._noMarkDeletePrompt = True - if answer in ['y', 'Y']: + if answer == 'y': template = '{{delete|1=%s}}\n' % reason self.text = template + self.text return self.save(comment=reason)