Xqt has submitted this change and it was merged.
Change subject: bug fix; follow-up to change-set 76450, a $Id$ was removed accidentially bug fix; regex adopted to new $Id$ format ......................................................................
bug fix; follow-up to change-set 76450, a $Id$ was removed accidentially bug fix; regex adopted to new $Id$ format
Change-Id: Ie468cdcbcd0bed470a158fa4f5edb879d25a889c --- M pywikibot/bot.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: DrTrigon: Checked; Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py index 28c71db..3e7aa5b 100644 --- a/pywikibot/bot.py +++ b/pywikibot/bot.py @@ -640,7 +640,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"$Id: (\w+) " + r"$", ver) pywikibot.output(u'Pywikipediabot r%s' % m.group(1)) pywikibot.output(u'Python %s' % sys.version)