# HG changeset patch # User Gregory Szorc # Date 1537927144 25200 # Node ID bce1c1af7518e87a6b8ee0761d8976c4b75da1b1 # Parent 69b4a5b89dc546db2b19bb452fdf1967ff98e7c5 py3: cast exception to bytes In order to appease Python 3. Differential Revision: https://phab.mercurial-scm.org/D4733 diff -r 69b4a5b89dc5 -r bce1c1af7518 mercurial/wireprotoframing.py --- a/mercurial/wireprotoframing.py Tue Sep 25 09:11:56 2018 -0700 +++ b/mercurial/wireprotoframing.py Tue Sep 25 18:59:04 2018 -0700 @@ -827,9 +827,10 @@ break except Exception as e: - for frame in createerrorframe(stream, requestid, - '%s' % e, - errtype='server'): + for frame in createerrorframe( + stream, requestid, '%s' % stringutil.forcebytestr(e), + errtype='server'): + yield frame break