mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +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
|
@ -174,8 +174,8 @@ sys_exc_clear(PyObject *self, PyObject *noargs)
|
|||
|
||||
if (Py_Py3kWarningFlag &&
|
||||
PyErr_Warn(PyExc_DeprecationWarning,
|
||||
"sys.exc_clear() not supported in 3.x. "
|
||||
"Use except clauses.") < 0)
|
||||
"sys.exc_clear() not supported in 3.x; "
|
||||
"use except clauses") < 0)
|
||||
return NULL;
|
||||
|
||||
tstate = PyThreadState_GET();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue