Mercurial > hg-stable
diff hg @ 38238:7824783a6d5e
templater: add wrapped types for pure non-list/dict values
These wrapper types will allow us to get rid of some isinstance() business.
A bytes object needs to support sequence-like operations (e.g. join(),
ifcontains(), etc.) That's why we have two wrapper classes.
Tests will be added later.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 20 Mar 2018 23:56:26 +0900 |
parents | 163fa0aea71e |
children | 5e78c100a215 |