[PATCH 15/21] print-svn-authors: fix

Felipe Contreras felipe.contreras at gmail.com
Sun May 13 10:14:23 EDT 2012


Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
 print-svn-authors.py |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/print-svn-authors.py b/print-svn-authors.py
index dd379d1..4075b09 100755
--- a/print-svn-authors.py
+++ b/print-svn-authors.py
@@ -7,12 +7,7 @@ import sys
 author_map = {}
 with open("authormap", "r") as f:
     for l in f:
-        try:
-            index = l.index("=")
-        except ValueError:
-            continue
-        author = l[:index].strip()
-        name = l[index+1:].strip()
+        author, name = l.rstrip().split(" = ")
         if author and name:
             author_map[author.lower()] = name
 
-- 
1.7.10.1




More information about the Devel mailing list