diff Python/codecs.c @ 39301:7dc5f3ede4cd legacy-trunk

Add PyErr_WarnEx() so C code can pass the stacklevel to warnings.warn(). This provides the proper warning for struct.pack(). PyErr_Warn() is now deprecated in favor of PyErr_WarnEx(). As mentioned by Tim Peters on python-dev.
author Neal Norwitz <nnorwitz@gmail.com>
date Sun, 30 Jul 2006 06:55:48 +0000
parents 6f042f5bf94d
children 4fe192d48960
line wrap: on
line diff