Commits

Benjamin Peterson committed 6a31c4e

add sys prefix

Comments (0)

Files changed (1)

Modules/itertoolsmodule.c

 				if (PyErr_Occurred())
 					PyErr_Clear();
 				PyErr_SetString(PyExc_ValueError,
-				   "Stop argument for islice() must be None or an integer: 0 <= x <= maxsize.");
+				   "Stop argument for islice() must be None or an integer: 0 <= x <= sys.maxsize.");
 				return NULL;
 			}
 		}
 				if (PyErr_Occurred())
 					PyErr_Clear();
 				PyErr_SetString(PyExc_ValueError,
-				   "Stop argument for islice() must be None or an integer: 0 <= x <= maxsize.");
+				   "Stop argument for islice() must be None or an integer: 0 <= x <= sys.maxsize.");
 				return NULL;
 			}
 		}
 	}
 	if (start<0 || stop<-1) {
 		PyErr_SetString(PyExc_ValueError,
-		   "Indices for islice() must be None or an integer: 0 <= x <= maxsize.");
+		   "Indices for islice() must be None or an integer: 0 <= x <= sys.maxsize.");
 		return NULL;
 	}