Closed bartbroere closed 1 month ago
I would use the slice and mention this can be replaced by removeprefix when we remove Python 3.8.
That sounds a bit less verbose indeed. I committed the suggestion.
buildkite test this please
buildkite test this please
buildkite test this please
Eland still supports Python 3.8, so str.removeprefix can be called and raise an
AttributeError
.Once Eland drops Python 3.8 support this if/else can be removed (only keeping the code in the if).