]> Devi Nivas Git - chevron.git/commit
Use getattr instead of _asdict/__getitem__
authorMax Bernstein <emacs@fb.com>
Sat, 2 Jan 2021 18:19:19 +0000 (10:19 -0800)
committerMax Bernstein <emacs@fb.com>
Sat, 2 Jan 2021 18:19:19 +0000 (10:19 -0800)
commitc450567d2626fe707725e8d57ebc64e75833b31d
treeaf90c776d10d8c8c105010b747d141896d384d51
parent4bc5648a4f7b9f07e7d7246d2131ba72379552e8
Use getattr instead of _asdict/__getitem__

`_asdict` is not public API for `namedtuple`.

You may want to consider using the built-in `string` module, which
implements this kind of `.0`/`.foo` formatting.
chevron/renderer.py