##// END OF EJS Templates
util: use string.hexdigits instead of defining it ourselves...
Augie Fackler -
r30054:8b89521a default
parent child Browse files
Show More
@@ -28,6 +28,7 b' import re as remod'
28 import shutil
28 import shutil
29 import signal
29 import signal
30 import socket
30 import socket
31 import string
31 import subprocess
32 import subprocess
32 import sys
33 import sys
33 import tempfile
34 import tempfile
@@ -2297,9 +2298,8 b' def parsebool(s):'
2297 """
2298 """
2298 return _booleans.get(s.lower(), None)
2299 return _booleans.get(s.lower(), None)
2299
2300
2300 _hexdig = '0123456789ABCDEFabcdef'
2301 _hextochr = dict((a + b, chr(int(a + b, 16)))
2301 _hextochr = dict((a + b, chr(int(a + b, 16)))
2302 for a in _hexdig for b in _hexdig)
2302 for a in string.hexdigits for b in string.hexdigits)
2303
2303
2304 def _urlunquote(s):
2304 def _urlunquote(s):
2305 """Decode HTTP/HTML % encoding.
2305 """Decode HTTP/HTML % encoding.
@@ -120,48 +120,32 b''
120 mercurial/httpconnection.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*)
120 mercurial/httpconnection.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*)
121 mercurial/httppeer.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*)
121 mercurial/httppeer.py: error importing: <TypeError> Can't mix strings and bytes in path components (error at i18n.py:*)
122 mercurial/i18n.py: error importing module: <TypeError> bytes expected, not str (line *)
122 mercurial/i18n.py: error importing module: <TypeError> bytes expected, not str (line *)
123 mercurial/keepalive.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
123 mercurial/keepalive.py: error importing module: <AttributeError> module 'mercurial.util' has no attribute 'httplib' (line *)
124 mercurial/localrepo.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
124 mercurial/localrepo.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
125 mercurial/lock.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
125 mercurial/mail.py: error importing module: <AttributeError> module 'email' has no attribute 'Header' (line *)
126 mercurial/mail.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
126 mercurial/manifest.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
127 mercurial/manifest.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
127 mercurial/merge.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
128 mercurial/match.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
128 mercurial/namespaces.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
129 mercurial/mdiff.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
129 mercurial/patch.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
130 mercurial/merge.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
130 mercurial/pvec.py: error importing module: <NameError> name 'xrange' is not defined (line *)
131 mercurial/minirst.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
131 mercurial/repair.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
132 mercurial/namespaces.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
132 mercurial/revlog.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
133 mercurial/obsolete.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
133 mercurial/revset.py: error importing module: <NameError> name 'xrange' is not defined (line *)
134 mercurial/patch.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
134 mercurial/scmutil.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
135 mercurial/pathutil.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
135 mercurial/scmwindows.py: error importing module: <ImportError> No module named 'winreg' (line *)
136 mercurial/peer.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
136 mercurial/simplemerge.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
137 mercurial/profiling.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
137 mercurial/sshpeer.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
138 mercurial/pushkey.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
138 mercurial/sshserver.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
139 mercurial/pvec.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
139 mercurial/statichttprepo.py: error importing: <AttributeError> module 'mercurial.util' has no attribute 'urlerr' (error at byterange.py:*)
140 mercurial/registrar.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
140 mercurial/store.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
141 mercurial/repair.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
141 mercurial/streamclone.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
142 mercurial/repoview.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
142 mercurial/subrepo.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
143 mercurial/revlog.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
143 mercurial/templatefilters.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
144 mercurial/revset.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
144 mercurial/templatekw.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
145 mercurial/scmutil.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
145 mercurial/templater.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
146 mercurial/scmwindows.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
146 mercurial/ui.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
147 mercurial/similar.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
147 mercurial/unionrepo.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
148 mercurial/simplemerge.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
148 mercurial/url.py: error importing: <AttributeError> module 'mercurial.util' has no attribute 'urlerr' (error at httpconnection.py:*)
149 mercurial/sshpeer.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
150 mercurial/sshserver.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
151 mercurial/sslutil.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
152 mercurial/statichttprepo.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
153 mercurial/store.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
154 mercurial/streamclone.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
155 mercurial/subrepo.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
156 mercurial/tagmerge.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
157 mercurial/tags.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
158 mercurial/templatefilters.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
159 mercurial/templatekw.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
160 mercurial/templater.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
161 mercurial/transaction.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
162 mercurial/ui.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
163 mercurial/unionrepo.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
164 mercurial/url.py: error importing: <TypeError> int() can't convert non-string with explicit base (error at util.py:*)
165 mercurial/verify.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
149 mercurial/verify.py: error importing: <TypeError> a bytes-like object is required, not 'str' (error at revset.py:*)
166 mercurial/win32.py: error importing module: <ImportError> No module named 'msvcrt' (line *)
150 mercurial/win32.py: error importing module: <ImportError> No module named 'msvcrt' (line *)
167 mercurial/windows.py: error importing module: <ImportError> No module named 'msvcrt' (line *)
151 mercurial/windows.py: error importing module: <ImportError> No module named 'msvcrt' (line *)
General Comments 0
You need to be logged in to leave comments. Login now