summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-09-18 21:29:36 +0000
committerGuido van Rossum <guido@python.org>1995-09-18 21:29:36 +0000
commitba1b4abd48cd19c91c3766fda1b9bdcf7d43d0ba (patch)
tree87e4e7ae1a2a9df946a430d1eac3f2f5d6b17ba4
parent0f805c47c5cbe18038962f095f5995bfcbeb0946 (diff)
downloadcpython-ba1b4abd48cd19c91c3766fda1b9bdcf7d43d0ba.tar.gz
spell TraceBack with capital B
-rw-r--r--Include/traceback.h4
-rw-r--r--Python/ceval.c2
-rw-r--r--Python/traceback.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/Include/traceback.h b/Include/traceback.h
index ad37dd9cc8..20a556b7dc 100644
--- a/Include/traceback.h
+++ b/Include/traceback.h
@@ -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
}
diff --git a/Python/ceval.c b/Python/ceval.c
index d725d35664..be1e1745d8 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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;
diff --git a/Python/traceback.c b/Python/traceback.c
index 1f803da43b..57502a148c 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -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)