docopt/docopt.c

We should not use __str__.replace()

ffunenga opened this issue · 5 comments

Instead of:
out = out.replace('<<<???>>>', substition)

we should use something like [1] or

"%(tag_identifier)s is great!" % {'tag_identifier': 'docopt'}

[1] http://docs.python.org/2/library/string.html#template-strings

👍

Sure :)

Ok, I'll make a pull request in the near future!

That would be most appreciated.

Merged, #7