author | Yuya Nishihara <yuya@tcha.org> |
Sun, 14 Aug 2016 12:44:13 +0900 | |
changeset 29798 | 31d588fcd2b9 |
parent 29797 | 965c91bad9e3 |
child 29799 | 45fa8de47a0f |
--- a/mercurial/pycompat.py Sun Aug 14 12:41:54 2016 +0900 +++ b/mercurial/pycompat.py Sun Aug 14 12:44:13 2016 +0900 @@ -29,9 +29,7 @@ import urllib.parse as urlparse import xmlrpc.client as xmlrpclib -try: - xrange -except NameError: +if sys.version_info[0] >= 3: import builtins builtins.xrange = range