Save comment hashes in sshkeys

reviewable/pr18780/r1
James Tanner 11 years ago
parent 7de788f346
commit 999b04f7fa

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

Loading…
Cancel
Save