diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-20 18:06:08 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-20 18:06:08 +0300 |
| commit | b32f8897eafcf335f9e9899c5e622a0b27679437 (patch) | |
| tree | 23d9b1afcf234ca8a18d45330e189b7465bee0fb /Python/compile.c | |
| parent | 52d1741c954448cd9ce3f705402e88211b8d4136 (diff) | |
| download | cpython-git-b32f8897eafcf335f9e9899c5e622a0b27679437.tar.gz | |
[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 <storchaka@gmail.com>
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 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; } |
