commit | 185903de12de8837bf0dc0008a16e5e56c66a019 | [log] [tgz] |
---|---|---|
author | Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> | Sun Mar 01 23:07:22 2020 +0300 |
committer | GitHub <noreply@github.com> | Sun Mar 01 20:07:22 2020 +0000 |
tree | dff76400c68deceedbd15872cc0e1c3e0aa0cc09 | |
parent | 768d739c1cd8c1d41902229581811a9b86bcc76e [diff] [blame] |
bpo-39520: Fix un-parsing of ext slices with no dimensions (GH-18304)
diff --git a/Python/ast_unparse.c b/Python/ast_unparse.c index f376e86..1a7cd23 100644 --- a/Python/ast_unparse.c +++ b/Python/ast_unparse.c
@@ -746,6 +746,7 @@ APPEND_STR_IF(i > 0, ", "); APPEND(slice, (slice_ty)asdl_seq_GET(slice->v.ExtSlice.dims, i)); } + APPEND_STR_IF(dims_count == 1, ","); return 0; }