comparison mercurial/templater.py @ 38225:d48b80d58848

templater: unify unwrapvalue() with _unwrapvalue() All weird generators got removed from the hgweb codebase. We still have inconsistent behavior regarding join() of a byte string, which will be addressed later.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 04 Apr 2018 21:06:14 +0900
parents e887381e2976
children 7824783a6d5e
comparison
equal deleted inserted replaced
38224:61cecab0cc20 38225:d48b80d58848
23 23
24 generator 24 generator
25 a lazily-evaluated byte string, which is a possibly nested generator of 25 a lazily-evaluated byte string, which is a possibly nested generator of
26 values of any printable types, and will be folded by ``stringify()`` 26 values of any printable types, and will be folded by ``stringify()``
27 or ``flatten()``. 27 or ``flatten()``.
28
29 BUG: hgweb overloads this type for mappings (i.e. some hgweb keywords
30 returns a generator of dicts.)
31 28
32 None 29 None
33 sometimes represents an empty value, which can be stringified to ''. 30 sometimes represents an empty value, which can be stringified to ''.
34 31
35 True, False, int, float 32 True, False, int, float