Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 46075:84bb7701efba legacy-trunk
Make Py3k warnings consistent w.r.t. punctuation; also respect the
EOL 80 limit and supply more alternatives in warning messages.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Tue, 25 Mar 2008 08:29:14 +0000 |
| parents | c86e9dd16b8d |
| children | 840064802952 |
comparison
equal
deleted
inserted
replaced
| 46074:9b3f0fa5d8ca | 46075:84bb7701efba |
|---|---|
| 172 PyThreadState *tstate; | 172 PyThreadState *tstate; |
| 173 PyObject *tmp_type, *tmp_value, *tmp_tb; | 173 PyObject *tmp_type, *tmp_value, *tmp_tb; |
| 174 | 174 |
| 175 if (Py_Py3kWarningFlag && | 175 if (Py_Py3kWarningFlag && |
| 176 PyErr_Warn(PyExc_DeprecationWarning, | 176 PyErr_Warn(PyExc_DeprecationWarning, |
| 177 "sys.exc_clear() not supported in 3.x. " | 177 "sys.exc_clear() not supported in 3.x; " |
| 178 "Use except clauses.") < 0) | 178 "use except clauses") < 0) |
| 179 return NULL; | 179 return NULL; |
| 180 | 180 |
| 181 tstate = PyThreadState_GET(); | 181 tstate = PyThreadState_GET(); |
| 182 tmp_type = tstate->exc_type; | 182 tmp_type = tstate->exc_type; |
| 183 tmp_value = tstate->exc_value; | 183 tmp_value = tstate->exc_value; |
