diff mercurial/chgserver.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 37b7581e5737
children 110040e715c9
line wrap: on
line diff