hints: fix replacing of {hint-url}.

Fixes #200.
This commit is contained in:
Florian Bruhin 2014-10-17 11:39:44 +02:00
parent ee02f339d7
commit 5a5ff70703

View File

@ -82,10 +82,8 @@ class HintContext:
"""Get the arguments, with {hint-url} replaced by the given URL."""
args = []
for arg in self.args:
if arg == '{hint-url}':
args.append(urlstr)
else:
args.append(arg)
arg = arg.replace('{hint-url}', urlstr)
args.append(arg)
return args