diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-17 03:17:48 (GMT) |
---|---|---|
committer | Ćukasz Langa <lukasz@langa.pl> | 2018-05-17 03:17:48 (GMT) |
commit | 64fddc423fcbe90b8088446c63385ec0aaf3077c (patch) | |
tree | 9accc41ee30c4e823ed6069f168189bf54431083 /Python/compile.c | |
parent | d852142cd728f45372ba6137bd87e29ba7b5b4d2 (diff) | |
download | cpython-64fddc423fcbe90b8088446c63385ec0aaf3077c.zip cpython-64fddc423fcbe90b8088446c63385ec0aaf3077c.tar.gz cpython-64fddc423fcbe90b8088446c63385ec0aaf3077c.tar.bz2 |
bpo-33475: Fix and improve converting annotations to strings. (GH-6774)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 7960f09..c3397f0 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; } |