]> granicus.if.org Git - python/commitdiff
Fix some mods that got dropped from the AST merge
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 21 Oct 2005 04:28:38 +0000 (04:28 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 21 Oct 2005 04:28:38 +0000 (04:28 +0000)
Python/ceval.c

index fdfe83e0e4510f5c1a9cba076795dddac91b1cf3..9e16c6ec6bc44e72e1504300dcaaf885b4189e39 100644 (file)
@@ -543,7 +543,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throw)
 #ifdef LLTRACE
        int lltrace;
 #endif
-#if defined(Py_DEBUG)
+#if defined(Py_DEBUG) || defined(LLTRACE)
        /* Make it easier to find out where we are with a debugger */
        char *filename;
 #endif
@@ -745,7 +745,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throw)
 #ifdef LLTRACE
        lltrace = PyDict_GetItemString(f->f_globals, "__lltrace__") != NULL;
 #endif
-#if defined(Py_DEBUG)
+#if defined(Py_DEBUG) || defined(LLTRACE)
        filename = PyString_AsString(co->co_filename);
 #endif