Hello PywikibotCommitWatcher,
I'd like you to do a code review. Please visit
https://gerrit.wikimedia.org/r/76453
to review the following change.
Change subject: bug fix; follow-up to change-set 76450, a $Id$ was removed accidentially ......................................................................
bug fix; follow-up to change-set 76450, a $Id$ was removed accidentially
Change-Id: Ie468cdcbcd0bed470a158fa4f5edb879d25a889c --- M pywikibot/bot.py 1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/53/76453/1
diff --git a/pywikibot/bot.py b/pywikibot/bot.py index 4424cb9..5f8f0af 100644 --- a/pywikibot/bot.py +++ b/pywikibot/bot.py @@ -624,7 +624,8 @@ if config.verbose_output: import re ver = pywikibot.__version__ # probably can be improved on - m = re.search(r"$Id$", ver) + m = re.search(r"%(S)sId: .* (\d+ \d+-\d+-\d+ \d+:\d+:\d+Z) .*%(S)s"%\ + {'S': r"$"}, ver) pywikibot.output(u'Pywikipediabot r%s' % m.group(1)) pywikibot.output(u'Python %s' % sys.version)