diff mercurial/sshpeer.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 2844c4bd5a39
children 8b1c887d52e7
line wrap: on
line diff