charencode: remove Python 2 support code
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Feb 2022 10:47:31 -0700
changeset 48907 b677bccf74b9
parent 48906 e453c69821f8
child 48908 ed2af4560f6e
charencode: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12310
mercurial/pure/charencode.py
--- 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):