DrTrigon has uploaded a new change for review.
https://gerrit.wikimedia.org/r/76453
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)
--
To view, visit
https://gerrit.wikimedia.org/r/76453
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie468cdcbcd0bed470a158fa4f5edb879d25a889c
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: DrTrigon <dr.trigon(a)surfeu.ch>