util: remove unused private constant '_hextochr'
authorYuya Nishihara <yuya@tcha.org>
Thu, 22 Mar 2018 21:32:19 +0900
changeset 37085 1a1d1c44b570
parent 37084 191cba70fe27
child 37086 f99d64e8a4e4
util: remove unused private constant '_hextochr' The only user, _urlunquote(), was removed by 81d38478fced.
mercurial/util.py
--- a/mercurial/util.py	Thu Mar 22 21:20:47 2018 +0900
+++ b/mercurial/util.py	Thu Mar 22 21:32:19 2018 +0900
@@ -34,7 +34,6 @@
 import signal
 import socket
 import stat
-import string
 import subprocess
 import sys
 import tempfile
@@ -3076,9 +3075,6 @@
     """
     return _booleans.get(s.lower(), None)
 
-_hextochr = dict((a + b, chr(int(a + b, 16)))
-                 for a in string.hexdigits for b in string.hexdigits)
-
 class url(object):
     r"""Reliable URL parser.