jenkins-bot has submitted this change and it was merged.
Change subject: PEP8-ify movepages.py ......................................................................
PEP8-ify movepages.py
Change-Id: I6d776ba34ac05999302f14adb606261d7de8275d --- M scripts/movepages.py 1 file changed, 5 insertions(+), 4 deletions(-)
Approvals: Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/movepages.py b/scripts/movepages.py index 098a394..bbed63d 100644 --- a/scripts/movepages.py +++ b/scripts/movepages.py @@ -37,9 +37,10 @@ # Distributed under the terms of the MIT license. #
-__version__='$Id$' +__version__ = '$Id$'
-import sys, re +import sys +import re import pywikibot from pywikibot import i18n from pywikibot import pagegenerators @@ -146,7 +147,7 @@ u'Change the page title to "%s"?' % newPageTitle, ['yes', 'no', 'all', 'quit'], ['y', 'n', 'a', 'q']) - if choice2 == 'y': + if choice2 == 'y': self.moveOne(page, newPageTitle) elif choice2 == 'a': self.appendAll = True @@ -161,7 +162,7 @@ searchPattern = pywikibot.input(u'Enter the search pattern:') self.replacePattern = pywikibot.input( u'Enter the replace pattern:') - self.regex=re.compile(searchPattern) + self.regex = re.compile(searchPattern) if page.title() == page.title(withNamespace=False): newPageTitle = self.regex.sub(self.replacePattern, page.title())
pywikibot-commits@lists.wikimedia.org