Save comment hashes in sshkeys

This commit is contained in:
James Tanner 2013-11-25 23:46:48 -05:00
parent 7de788f346
commit 999b04f7fa

View file

@ -218,6 +218,7 @@ def parsekey(raw_key):
# split key safely
lex = shlex.shlex(raw_key)
lex.quotes = ["'", '"']
lex.commenters = '' #keep comment hashes
lex.whitespace_split = True
key_parts = list(lex)