diff -r 0a57945aaf7f -r 7eba8f83129b mercurial/pycompat.py --- a/mercurial/pycompat.py Tue Jul 31 19:37:54 2018 +0200 +++ b/mercurial/pycompat.py Wed Aug 01 12:57:15 2018 -0700 @@ -331,6 +331,7 @@ else: import cStringIO + xrange = xrange unicode = unicode bytechr = chr byterepr = repr