mercurial/pure/osutil.py
changeset 38783 e7aa113b14f7
parent 34645 75979c8d4572
child 39644 3b421154d2ca
--- a/mercurial/pure/osutil.py	Wed Aug 01 12:57:15 2018 -0700
+++ b/mercurial/pure/osutil.py	Wed Aug 01 13:00:45 2018 -0700
@@ -150,7 +150,7 @@
         rfds = ctypes.cast(cmsg.cmsg_data, ctypes.POINTER(ctypes.c_int))
         rfdscount = ((cmsg.cmsg_len - _cmsghdr.cmsg_data.offset) /
                      ctypes.sizeof(ctypes.c_int))
-        return [rfds[i] for i in xrange(rfdscount)]
+        return [rfds[i] for i in pycompat.xrange(rfdscount)]
 
 else:
     import msvcrt