diff mercurial/minirst.py @ 34695:e178fcaa3933

python3: use our bytes-only version of cgi.escape everywhere As suggested by Yuya in D965. Differential Revision: https://phab.mercurial-scm.org/D1067
author Augie Fackler <augie@google.com>
date Thu, 05 Oct 2017 14:16:20 -0400
parents 0fa781320203
children f0b6fbea00cf
line wrap: on
line diff
--- a/mercurial/minirst.py	Sat Oct 14 02:57:26 2017 -0400
+++ b/mercurial/minirst.py	Thu Oct 05 14:16:20 2017 -0400
@@ -20,13 +20,13 @@
 
 from __future__ import absolute_import
 
-import cgi
 import re
 
 from .i18n import _
 from . import (
     encoding,
     pycompat,
+    url,
     util,
 )
 
@@ -552,7 +552,7 @@
     listnest = []
 
     def escape(s):
-        return cgi.escape(s, True)
+        return url.escape(s, True)
 
     def openlist(start, level):
         if not listnest or listnest[-1][0] != start: