comparison mercurial/ui.py @ 34723:b13c95919ff5

templater: explode if we try to emit a str Without this if branch, we infinitely recurse in _flatten, which is very confusing. Something in an hgweb template is trying to write out a string instead of a bytes on Python 3, and this at least makes it crash politely. Differential Revision: https://phab.mercurial-scm.org/D1088
author Augie Fackler <augie@google.com>
date Sat, 14 Oct 2017 11:30:17 -0400
parents 6cd8d8203204
children 9f2891fb426c
comparison
equal deleted inserted replaced
34722:95be8928d6b2 34723:b13c95919ff5