aboutsummaryrefslogtreecommitdiff
path: root/gitosis/sshkey.py
diff options
context:
space:
mode:
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 += ','