Closed ffunenga closed 11 years ago
Instead of: out = out.replace('<<<???>>>', substition)
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
:+1:
Sure :)
Ok, I'll make a pull request in the near future!
That would be most appreciated.
Merged, https://github.com/docopt/docopt.c/pull/7
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