mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Make Py3k warnings consistent w.r.t. punctuation; also respect the
EOL 80 limit and supply more alternatives in warning messages.
This commit is contained in:
parent
80055f6295
commit
d5b635f196
16 changed files with 67 additions and 54 deletions
|
|
@ -55,8 +55,9 @@ static int
|
|||
cell_compare(PyCellObject *a, PyCellObject *b)
|
||||
{
|
||||
/* Py3K warning for comparisons */
|
||||
if (Py_Py3kWarningFlag && PyErr_Warn(PyExc_DeprecationWarning,
|
||||
"cell comparisons not supported in 3.x.") < 0) {
|
||||
if (Py_Py3kWarningFlag &&
|
||||
PyErr_Warn(PyExc_DeprecationWarning,
|
||||
"cell comparisons not supported in 3.x") < 0) {
|
||||
return -2;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue