spell TraceBack with capital B
This commit is contained in:
parent
8ca687a68e
commit
9d78d8d2fb
|
@ -38,8 +38,8 @@ int PyTraceBack_Store Py_PROTO((PyObject *));
|
|||
int PyTraceBack_Print Py_PROTO((PyObject *, PyObject *));
|
||||
|
||||
/* Reveale traceback type so we can typecheck traceback objects */
|
||||
extern PyTypeObject PyTraceback_Type;
|
||||
#define PyTraceback_Check(v) ((v)->ob_type == &PyTraceback_Type)
|
||||
extern PyTypeObject PyTraceBack_Type;
|
||||
#define PyTraceBack_Check(v) ((v)->ob_type == &PyTraceBack_Type)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -912,7 +912,7 @@ eval_code2(co, globals, locals,
|
|||
DECREF(u);
|
||||
u = NULL;
|
||||
}
|
||||
else if (!PyTraceback_Check(u)) {
|
||||
else if (!PyTraceBack_Check(u)) {
|
||||
err_setstr(TypeError,
|
||||
"raise 3rd arg must be traceback or None");
|
||||
goto raise_error;
|
||||
|
|
|
@ -68,8 +68,8 @@ tb_dealloc(tb)
|
|||
DEL(tb);
|
||||
}
|
||||
|
||||
#define Tracebacktype PyTraceback_Type
|
||||
#define is_tracebackobject PyTraceback_Check
|
||||
#define Tracebacktype PyTraceBack_Type
|
||||
#define is_tracebackobject PyTraceBack_Check
|
||||
|
||||
typeobject Tracebacktype = {
|
||||
OB_HEAD_INIT(&Typetype)
|
||||
|
|
Loading…
Reference in New Issue