Shorten variable and function names
authorChristian Ebert <blacktrash@gmx.net>
Tue, 12 Dec 2006 23:35:45 +0100
changeset 2 0bda12ebde94
parent 1 1d997ec7be86
child 3 b9f2c0853da3
Shorten variable and function names
hgkw/hgkwencode.py
hgkwencode
--- 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()))
--- a/hgkwencode	Tue Dec 12 22:26:05 2006 +0100
+++ b/hgkwencode	Tue Dec 12 23:35:45 2006 +0100
@@ -3,4 +3,4 @@
 
 from hgkw import hgkwencode
 
-hgkwencode.hgkwencode()
+hgkwencode.kwencode()