From b32f8897eafcf335f9e9899c5e622a0b27679437 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 20 May 2018 18:06:08 +0300 Subject: [3.7] bpo-33475: Fix and improve converting annotations to strings. (GH-6774). (GH-6927) (cherry picked from commit 64fddc423fcbe90b8088446c63385ec0aaf3077c) Co-authored-by: Serhiy Storchaka --- Python/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index 62d78867e0..c38a0d1b1a 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1705,7 +1705,7 @@ static int compiler_visit_annexpr(struct compiler *c, expr_ty annotation) { PyObject *ann_as_str; - ann_as_str = _PyAST_ExprAsUnicode(annotation, 1); + ann_as_str = _PyAST_ExprAsUnicode(annotation); if (!ann_as_str) { return 0; } -- cgit v1.2.1