Fix regression of #21355 introduced by #21603

This commit is contained in:
Ronald van Zantvoort 2015-05-12 12:10:47 +02:00
parent b593328176
commit d8248dd368

View file

@ -163,7 +163,7 @@ def present(
fullkey = sshre.search(name)
# if it is {key} [comment]
if not fullkey:
key_and_comment = name.split()
key_and_comment = name.split(None, 1)
name = key_and_comment[0]
if len(key_and_comment) == 2:
comment = key_and_comment[1]
@ -172,7 +172,7 @@ def present(
if fullkey.group(1):
options = fullkey.group(1).split(',')
# key is of format: {enc} {key} [comment]
comps = fullkey.group(2).split()
comps = fullkey.group(2).split(None, 2)
enc = comps[0]
name = comps[1]
if len(comps) == 3: