From 231e601545d0a09d84d3c5c2786d774f56fe9217 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sun, 3 Feb 2008 00:13:03 -0800 Subject: Avoid trailing whitespace messing up the keyname. --- gitosis/sshkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gitosis/sshkey.py') 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 += ',' -- cgit v1.2.3