changeset 48907: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 e453c69821f8
children ed2af4560f6e
files mercurial/pure/charencode.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
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):