]> Devi Nivas Git - chevron.git/commit
Use more pythonic type checking
authorGuido Berhoerster <guido+chevron@berhoerster.name>
Tue, 28 Aug 2018 13:43:52 +0000 (15:43 +0200)
committerGuido Berhoerster <guido+chevron@berhoerster.name>
Wed, 29 Aug 2018 06:59:32 +0000 (08:59 +0200)
commit5abf7ebfc0f2196ae3cc0cfd1141090052ea6be2
treed8958742f6c09f0f0e2d8ba1d467878e809edade
parent467ea90d23f575dea028f42be9fe4fe587a5b3df
Use more pythonic type checking

Use isinstance() and abstract base classes for checking available
functionality instead of strictly checking for base types. Among other
things, this allows for rendering any non-string sequences, iterators or
generators as lists (resolves #33) and for passing in any callable
instead of just plain functions.
chevron/renderer.py