mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +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
|
@ -627,8 +627,9 @@ file_seek(PyFileObject *f, PyObject *args)
|
|||
return NULL;
|
||||
/* Deprecated in 2.6 */
|
||||
PyErr_Clear();
|
||||
if (PyErr_Warn(PyExc_DeprecationWarning,
|
||||
"integer argument expected, got float"))
|
||||
if (PyErr_WarnEx(PyExc_DeprecationWarning,
|
||||
"integer argument expected, got float",
|
||||
1) < 0)
|
||||
return NULL;
|
||||
off_index = offobj;
|
||||
Py_INCREF(offobj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue