summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2012-05-06 18:15:45 +0200
committerSebastian Pipping <sebastian@pipping.org>2012-05-06 18:15:45 +0200
commitfe823abcce4629f5da6a7e93173548547409653f (patch)
tree8bbb88570b8304461aefd5cf06e5805affdd72f4
parentDo not re-write the past, requested by ulm (diff)
downloaduserinfo-scripts-fe823abcce4629f5da6a7e93173548547409653f.tar.gz
userinfo-scripts-fe823abcce4629f5da6a7e93173548547409653f.tar.bz2
userinfo-scripts-fe823abcce4629f5da6a7e93173548547409653f.zip
Simplify produce_line()
-rwxr-xr-xgit-identity-map.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-identity-map.py b/git-identity-map.py
index 2f8aee4..05dad60 100755
--- a/git-identity-map.py
+++ b/git-identity-map.py
@@ -8,8 +8,8 @@ import xml.etree.ElementTree as ET # Python 2.5
import sys
-def produce_line(svn_nick, realname, gentoo_nick):
- line = '%s = %s <%s@gentoo.org>' % (svn_nick, realname, gentoo_nick)
+def produce_line(gentoo_nick, realname):
+ line = '%s = %s <%s@gentoo.org>' % (gentoo_nick, realname, gentoo_nick)
print(line.encode('utf-8'))
@@ -29,10 +29,10 @@ def main(args):
location = user.find('location')
realname = user.find('realname').attrib['fullname'].strip()
- produce_line(svn_nick, realname, svn_nick)
+ produce_line(svn_nick, realname)
if svn_nick == 'fauli':
- produce_line('opfer', realname, 'opfer')
+ produce_line('opfer', realname)
return 0