From dc37a4e7bdd252c75bea028c5d9281abbf8d638c Mon Sep 17 00:00:00 2001 From: matthew Date: Sun, 3 Feb 2002 23:01:29 +0000 Subject: [PATCH] Improved CVS magic stuff - maybe it will build this time --- acrobat-chiark-0.2.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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") -- 2.30.2