jenkins-bot has submitted this change and it was merged.
Change subject: [PEP8] changes ......................................................................
[PEP8] changes
Change-Id: I99b80a56f935132a3133628ba9dbe43d134127e8 --- M template.py 1 file changed, 7 insertions(+), 7 deletions(-)
Approvals: Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/template.py b/template.py index 677890f..33c7ef0 100644 --- a/template.py +++ b/template.py @@ -98,12 +98,12 @@ # # (C) Daniel Herding, 2004 # (C) Rob W.W. Hooft, 2003-2005 -# (C) xqt, 2009-2011 -# (C) Pywikipedia team, 2004-2010 +# (C) xqt, 2009-2013 +# (C) Pywikibot team, 2004-2013 # # Distributed under the terms of the MIT license. # -__version__='$Id$' +__version__ = '$Id$' # import re import sys @@ -133,7 +133,7 @@ found = False for ed in editors: uts = pywikibot.Timestamp.fromISOformat(ed['timestamp']) - if not timestamp or uts>=ts: + if not timestamp or uts >= ts: if username == ed['user']: found = True break @@ -224,7 +224,7 @@ # get edit summary message if it's empty if not self.editSummary: Param = {'list': comma.join(self.templates.keys()), - 'num' : len(self.templates)} + 'num': len(self.templates)} if self.remove: self.editSummary = i18n.twntranslate( site, 'template-removing', Param) @@ -264,11 +264,11 @@ if self.subst and self.remove: replacements.append((templateRegex, '{{subst:%s\g<parameters>}}' % new)) - exceptions['inside-tags']=['ref', 'gallery'] + exceptions['inside-tags'] = ['ref', 'gallery'] elif self.subst: replacements.append((templateRegex, '{{subst:%s\g<parameters>}}' % old)) - exceptions['inside-tags']=['ref', 'gallery'] + exceptions['inside-tags'] = ['ref', 'gallery'] elif self.remove: replacements.append((templateRegex, '')) else:
pywikibot-commits@lists.wikimedia.org