mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
A little reformating of Py3k warnings
This commit is contained in:
parent
fe4948bcef
commit
f19a7b90bd
11 changed files with 33 additions and 35 deletions
|
@ -1258,7 +1258,7 @@ static PyObject *
|
|||
array_fromfile_as_read(arrayobject *self, PyObject *args)
|
||||
{
|
||||
if (PyErr_WarnPy3k("array.read() not supported in 3.x; "
|
||||
"use array.fromfile()", 1) < 0)
|
||||
"use array.fromfile()", 1) < 0)
|
||||
return NULL;
|
||||
return array_fromfile(self, args);
|
||||
}
|
||||
|
@ -1297,7 +1297,7 @@ static PyObject *
|
|||
array_tofile_as_write(arrayobject *self, PyObject *f)
|
||||
{
|
||||
if (PyErr_WarnPy3k("array.write() not supported in 3.x; "
|
||||
"use array.tofile()", 1) < 0)
|
||||
"use array.tofile()", 1) < 0)
|
||||
return NULL;
|
||||
return array_tofile(self, f);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue