bpo-33475: Fix and improve converting annotations to strings. (GH-6774)

This commit is contained in:
Serhiy Storchaka 2018-05-17 06:17:48 +03:00 committed by Łukasz Langa
parent d852142cd7
commit 64fddc423f
5 changed files with 356 additions and 601 deletions

View file

@ -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;
}