mercurial/osutil.c
changeset 30110 79f438f5dd02
parent 30098 301ef65e8ebb
child 30111 a989fa78dafa
--- a/mercurial/osutil.c	Sun Oct 09 12:37:10 2016 +0200
+++ b/mercurial/osutil.c	Sun Oct 09 13:41:18 2016 +0200
@@ -706,7 +706,7 @@
 	if (!rfdslist)
 		goto bail;
 	for (i = 0; i < rfdscount; i++) {
-		PyObject *obj = PyInt_FromLong(rfds[i]);
+		PyObject *obj = PyLong_FromLong(rfds[i]);
 		if (!obj)
 			goto bail;
 		PyList_SET_ITEM(rfdslist, i, obj);