mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
bpo-39520: Fix un-parsing of ext slices with no dimensions (GH-18304)
(cherry picked from commit 185903de12)
Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c22879914b
commit
cd07b4da65
@@ -746,6 +746,7 @@ append_ast_ext_slice(_PyUnicodeWriter *writer, slice_ty slice)
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user