~pythonregexp2.7/python/issue2636-20

« back to all changes in this revision

Viewing changes to Python/sysmodule.c

  • Committer: Jeffrey C. Jacobs
  • Date: 2008-04-27 13:52:36 UTC
  • mfrom: (39021.1.11)
  • Revision ID: timehorse@starship.python.net-20080427135236-j5e3wresfuyl2cf7
Merged in changes from Main Line

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
        PyThreadState *tstate;
173
173
        PyObject *tmp_type, *tmp_value, *tmp_tb;
174
174
 
175
 
        if (Py_Py3kWarningFlag &&
176
 
            PyErr_Warn(PyExc_DeprecationWarning,
177
 
                       "sys.exc_clear() not supported in 3.x; "
178
 
                       "use except clauses") < 0)
 
175
        if (PyErr_WarnPy3k("sys.exc_clear() not supported in 3.x; "
 
176
                       "use except clauses", 1) < 0)
179
177
                return NULL;
180
178
 
181
179
        tstate = PyThreadState_GET();