summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-17 03:23:04 +0000
committerBenjamin Peterson <benjamin@python.org>2009-06-17 03:23:04 +0000
commit7412c41af1295713c55f7f583341be38c57d6e39 (patch)
tree018ca1c8c1db42fffe8ce0c5ef9d95003c9e3bcd /Python/compile.c
parentf0f24aa8ee5dd692059d5d833150c893c7edd5a1 (diff)
downloadcpython-7412c41af1295713c55f7f583341be38c57d6e39.tar.gz
remove unused 'encoding' member from the compiler struct
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 0a83bfce31..29cd950553 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -140,7 +140,6 @@ struct compiler {
struct compiler_unit *u; /* compiler state for current block */
PyObject *c_stack; /* Python list holding compiler_unit ptrs */
- char *c_encoding; /* source encoding (a borrowed reference) */
PyArena *c_arena; /* pointer to memory allocation arena */
};
@@ -282,9 +281,6 @@ PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags,
goto finally;
}
- /* XXX initialize to NULL for now, need to handle */
- c.c_encoding = NULL;
-
co = compiler_mod(&c, mod);
finally: