~pythonregexp2.7/python/issue2636-12

« back to all changes in this revision

Viewing changes to Python/_warnings.c

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:52:42 UTC
  • mfrom: (39033.1.3 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609145242-9m268zc6u87rp1vp
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
775
775
}
776
776
 
777
777
 
778
 
int
779
 
PyErr_WarnPy3k(const char *text, Py_ssize_t stacklevel)
780
 
{
781
 
    if (Py_Py3kWarningFlag)
782
 
        return PyErr_WarnEx(PyExc_DeprecationWarning, text, stacklevel);
783
 
    return 0;
784
 
}
785
 
 
786
 
 
787
778
PyDoc_STRVAR(warn_doc,
788
779
"Issue a warning, or maybe ignore it or raise an exception.");
789
780