aboutsummaryrefslogtreecommitdiff
path: root/gitosis/sshkey.py
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-02-03 00:13:03 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2008-02-03 00:13:03 -0800
commit231e601545d0a09d84d3c5c2786d774f56fe9217 (patch)
tree750dc8698badb3befbecb58882192542df030ff8 /gitosis/sshkey.py
parentUse a valid algo typo for ssh. (diff)
downloadgitosis-dakkar-231e601545d0a09d84d3c5c2786d774f56fe9217.tar.gz
gitosis-dakkar-231e601545d0a09d84d3c5c2786d774f56fe9217.tar.bz2
gitosis-dakkar-231e601545d0a09d84d3c5c2786d774f56fe9217.zip
Avoid trailing whitespace messing up the keyname.
Diffstat (limited to 'gitosis/sshkey.py')
-rw-r--r--gitosis/sshkey.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitosis/sshkey.py b/gitosis/sshkey.py
index 145d746..802145b 100644
--- a/gitosis/sshkey.py
+++ b/gitosis/sshkey.py
@@ -141,7 +141,7 @@ def _explode_ssh_key(line):
Seperately return the options, key data and comment.
"""
opts = {}
- shl = shlex(StringIO(line), None, True)
+ shl = shlex(StringIO(line.strip()), None, True)
shl.wordchars += '-'
# Treat ',' as whitespace seperation the options
shl.whitespace += ','