summaryrefslogtreecommitdiff
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-06-04 05:26:40 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-06-04 05:26:40 +0000
commita361c18a105386903f688c1da0d0571f39fa37b8 (patch)
tree34b5e4fa8461b0f2e126ca9f2a5887f8a5445f57 /Python/symtable.c
parent535b97b00af573c330e13075d1e8c131cdb878ac (diff)
parent3c5ac7bf9a6eb5ddb854e58bc796940b32d34fb7 (diff)
downloadcpython-a361c18a105386903f688c1da0d0571f39fa37b8.tar.gz
Merge typo fixes from 3.5
Diffstat (limited to 'Python/symtable.c')
-rw-r--r--Python/symtable.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/Python/symtable.c b/Python/symtable.c
index 1591a20f50..3f03184f08 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -160,7 +160,7 @@ PyTypeObject PySTEntry_Type = {
};
static int symtable_analyze(struct symtable *st);
-static int symtable_warn(struct symtable *st, char *msg, int lineno);
+static int symtable_warn(struct symtable *st, const char *msg, int lineno);
static int symtable_enter_block(struct symtable *st, identifier name,
_Py_block_ty block, void *ast, int lineno,
int col_offset);
@@ -908,7 +908,7 @@ symtable_analyze(struct symtable *st)
static int
-symtable_warn(struct symtable *st, char *msg, int lineno)
+symtable_warn(struct symtable *st, const char *msg, int lineno)
{
PyObject *message = PyUnicode_FromString(msg);
if (message == NULL)
@@ -1447,6 +1447,15 @@ symtable_visit_expr(struct symtable *st, expr_ty e)
VISIT_SEQ(st, expr, e->v.Call.args);
VISIT_SEQ_WITH_NULL(st, keyword, e->v.Call.keywords);
break;
+ case FormattedValue_kind:
+ VISIT(st, expr, e->v.FormattedValue.value);
+ if (e->v.FormattedValue.format_spec)
+ VISIT(st, expr, e->v.FormattedValue.format_spec);
+ break;
+ case JoinedStr_kind:
+ VISIT_SEQ(st, expr, e->v.JoinedStr.values);
+ break;
+ case Constant_kind:
case Num_kind:
case Str_kind:
case Bytes_kind: