Mercurial > public > mercurial-scm > hg-stable
diff mercurial/pure/charencode.py @ 48998:b677bccf74b9
charencode: remove Python 2 support code
Differential Revision: https://phab.mercurial-scm.org/D12310
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 10:47:31 -0700 |
parents | 6000f5b25c9b |
children | 43adbe03079b |
line wrap: on
line diff
--- a/mercurial/pure/charencode.py Mon Feb 21 10:47:08 2022 -0700 +++ b/mercurial/pure/charencode.py Mon Feb 21 10:47:31 2022 -0700 @@ -67,10 +67,7 @@ raise ValueError -if pycompat.ispy3: - _utf8strict = r'surrogatepass' -else: - _utf8strict = r'strict' +_utf8strict = r'surrogatepass' def jsonescapeu8fallback(u8chars, paranoid):