From: matthew Date: Sun, 3 Feb 2002 23:01:29 +0000 (+0000) Subject: Improved CVS magic stuff - maybe it will build this time X-Git-Tag: upstream_0_3~16 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?p=irc.git;a=commitdiff_plain;h=dc37a4e7bdd252c75bea028c5d9281abbf8d638c Improved CVS magic stuff - maybe it will build this time --- diff --git a/acrobat-chiark-0.2.py b/acrobat-chiark-0.2.py index aac0c23..e258636 100755 --- a/acrobat-chiark-0.2.py +++ b/acrobat-chiark-0.2.py @@ -50,8 +50,9 @@ class Acrobat(SingleServerIRCBot): self.channel = channel self.owner = owner # version control magic - acrorevision=$Revision$ - acroversion=re.sub($Revision$]*\)$,\1) + acrorevision="$Revision$" + acrorev1=re.sub(Revision$\([^$]*\)$,\1,acrorevision) + acrorev2=re.sub($\(.*\),\1,acrorev1) # load the karma db try: f = open("karmadump", "r")