File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1548,7 +1548,7 @@ float_as_integer_ratio(PyObject *v, PyObject *unused)
15481548#ifdef Py_NAN
15491549 if (Py_IS_NAN (self )) {
15501550 PyErr_SetString (PyExc_ValueError ,
1551- "Cannot pass nan to float.as_integer_ratio." );
1551+ "Cannot pass NaN to float.as_integer_ratio." );
15521552 return NULL ;
15531553 }
15541554#endif
@@ -1607,7 +1607,7 @@ PyDoc_STRVAR(float_as_integer_ratio_doc,
16071607"\n"
16081608"Returns a pair of integers, whose ratio is exactly equal to the original\n"
16091609"float and with a positive denominator.\n"
1610- "Raises OverflowError on infinities and a ValueError on nans .\n"
1610+ "Raises OverflowError on infinities and a ValueError on NaNs .\n"
16111611"\n"
16121612">>> (10.0).as_integer_ratio()\n"
16131613"(10, 1)\n"
You can’t perform that action at this time.
0 commit comments