hgkw/hgkwencode.py
changeset 2 0bda12ebde94
parent 1 1d997ec7be86
child 3 b9f2c0853da3
--- a/hgkw/hgkwencode.py	Tue Dec 12 22:26:05 2006 +0100
+++ b/hgkw/hgkwencode.py	Tue Dec 12 23:35:45 2006 +0100
@@ -2,10 +2,9 @@
 
 import re, sys
 
-#re_kwencode = re.compile(r'[$]Hg.*?[$]')
-re_kwencode = re.compile(r'([$]Hg: .+?,v) [a-z0-9]{12} [^$]+? [$]')
+#re_kw = re.compile(r'[$]Hg.*?[$]')
+re_kw = re.compile(r'([$]Hg: .+?,v) [a-z0-9]{12} [^$]+? [$]')
 
-def hgkwencode():
+def kwencode():
     sys.stdout.write(
-            re_kwencode.sub(r'\1$', sys.stdin.read())
-            )
+            re_kw.sub(r'\1$', sys.stdin.read()))