[Python-checkins] r82716 - python/branches/import_unicode/Python/ceval.c

victor.stinner python-checkins at python.org
Fri Jul 9 01:33:28 CEST 2010


Author: victor.stinner
Date: Fri Jul  9 01:33:28 2010
New Revision: 82716

Log:
ceval: remove filename debug variable

_PyUnicode_AsString() may raise an exception

Modified:
   python/branches/import_unicode/Python/ceval.c

Modified: python/branches/import_unicode/Python/ceval.c
==============================================================================
--- python/branches/import_unicode/Python/ceval.c	(original)
+++ python/branches/import_unicode/Python/ceval.c	Fri Jul  9 01:33:28 2010
@@ -796,10 +796,6 @@
     unsigned char *first_instr;
     PyObject *names;
     PyObject *consts;
-#if defined(Py_DEBUG) || defined(LLTRACE)
-    /* Make it easier to find out where we are with a debugger */
-    char *filename;
-#endif
 
 /* Computed GOTOs, or
        the-optimization-commonly-but-improperly-known-as-"threaded code"
@@ -1199,9 +1195,6 @@
 #ifdef LLTRACE
     lltrace = PyDict_GetItemString(f->f_globals, "__lltrace__") != NULL;
 #endif
-#if defined(Py_DEBUG) || defined(LLTRACE)
-    filename = _PyUnicode_AsString(co->co_filename);
-#endif
 
     why = WHY_NOT;
     err = 0;


More information about the Python-checkins mailing list