summaryrefslogtreecommitdiffstats
path: root/Include/symtable.h
diff options
context:
space:
mode:
authorNitish Chandra <nitishchandrachinta@gmail.com>2018-02-26 21:31:20 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2018-02-26 21:31:20 (GMT)
commit3a087beddd9f0955eb9080a6fd1499ff89ca74bf (patch)
treefd2c5b431db0c253e1c81e21b50a66ca81bccbdd /Include/symtable.h
parent6b5df906afe113dbe421d044322254cfd4747c9c (diff)
downloadcpython-3a087beddd9f0955eb9080a6fd1499ff89ca74bf.zip
cpython-3a087beddd9f0955eb9080a6fd1499ff89ca74bf.tar.gz
cpython-3a087beddd9f0955eb9080a6fd1499ff89ca74bf.tar.bz2
bpo-32836: Remove obsolete code from symtable pass (GH-5680)
When comprehensions switched to using a nested scope, the old code for generating a temporary name to hold the accumulation target became redundant, but was never actually removed. Patch by Nitish Chandra.
Diffstat (limited to 'Include/symtable.h')
-rw-r--r--Include/symtable.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Include/symtable.h b/Include/symtable.h
index 86ae3c2..007f88d 100644
--- a/Include/symtable.h
+++ b/Include/symtable.h
@@ -60,7 +60,6 @@ typedef struct _symtable_entry {
int ste_col_offset; /* offset of first line of block */
int ste_opt_lineno; /* lineno of last exec or import * */
int ste_opt_col_offset; /* offset of last exec or import * */
- int ste_tmpname; /* counter for listcomp temp vars */
struct symtable *ste_table;
} PySTEntryObject;