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)
--
To view, visit
https://gerrit.wikimedia.org/r/76453
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie468cdcbcd0bed470a158fa4f5edb879d25a889c
Gerrit-PatchSet: 5
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: DrTrigon <dr.trigon(a)surfeu.ch>
Gerrit-Reviewer: DrTrigon <dr.trigon(a)surfeu.ch>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipedia(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: PywikibotCommitWatcher <pywikibot-commits(a)lists.wikimedia.org>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot