summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-05-17 06:17:48 +0300
committerƁukasz Langa <lukasz@langa.pl>2018-05-16 23:17:48 -0400
commit64fddc423fcbe90b8088446c63385ec0aaf3077c (patch)
tree9accc41ee30c4e823ed6069f168189bf54431083 /Python/compile.c
parentd852142cd728f45372ba6137bd87e29ba7b5b4d2 (diff)
downloadcpython-git-64fddc423fcbe90b8088446c63385ec0aaf3077c.tar.gz
bpo-33475: Fix and improve converting annotations to strings. (GH-6774)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 7960f09319..c3397f0c45 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1822,7 +1822,7 @@ error:
static int
compiler_visit_annexpr(struct compiler *c, expr_ty annotation)
{
- ADDOP_LOAD_CONST_NEW(c, _PyAST_ExprAsUnicode(annotation, 1));
+ ADDOP_LOAD_CONST_NEW(c, _PyAST_ExprAsUnicode(annotation));
return 1;
}