[Python-checkins] cpython: Remove unused variable `trim_get_code`.

antoine.pitrou python-checkins at python.org
Sat Aug 4 23:29:25 CEST 2012


http://hg.python.org/cpython/rev/9ba8d0b3ff18
changeset:   78419:9ba8d0b3ff18
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sat Aug 04 23:26:25 2012 +0200
summary:
  Remove unused variable `trim_get_code`.

files:
  Python/import.c |  4 ----
  1 files changed, 0 insertions(+), 4 deletions(-)


diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -1155,7 +1155,6 @@
     const char *importlib_filename = "<frozen importlib._bootstrap>";
     const char *remove_frames = "_call_with_frames_removed";
     int always_trim = 0;
-    int trim_get_code = 0;
     int in_importlib = 0;
     PyObject *exception, *value, *base_tb, *tb;
     PyObject **prev_link, **outer_link = NULL;
@@ -1170,9 +1169,6 @@
     if (PyType_IsSubtype((PyTypeObject *) exception,
                          (PyTypeObject *) PyExc_ImportError))
         always_trim = 1;
-    if (PyType_IsSubtype((PyTypeObject *) exception,
-                         (PyTypeObject *) PyExc_SyntaxError))
-        trim_get_code = 1;
 
     prev_link = &base_tb;
     tb = base_tb;

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list