[PATCH 21/21] fix-svn-author-certs: trivial cleanup

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


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

diff --git a/fix-svn-author-certs.py b/fix-svn-author-certs.py
index af3df0a..0b95410 100755
--- a/fix-svn-author-certs.py
+++ b/fix-svn-author-certs.py
@@ -24,12 +24,7 @@ if key:
 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