diff options
Diffstat (limited to 'Python/traceback.c')
-rw-r--r-- | Python/traceback.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/traceback.c b/Python/traceback.c index 1ab880a..1f803da 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -68,7 +68,10 @@ tb_dealloc(tb) DEL(tb); } -static typeobject Tracebacktype = { +#define Tracebacktype PyTraceback_Type +#define is_tracebackobject PyTraceback_Check + +typeobject Tracebacktype = { OB_HEAD_INIT(&Typetype) 0, "traceback", @@ -85,8 +88,6 @@ static typeobject Tracebacktype = { 0, /*tp_as_mapping*/ }; -#define is_tracebackobject(v) ((v)->ob_type == &Tracebacktype) - static tracebackobject * newtracebackobject(next, frame, lasti, lineno) tracebackobject *next; |