On Wed, May 20, 2020 at 12:44 PM Henk-Jaap Wagenaar <wagenaarhenkjaap@gmail.com> wrote:
foobar.removesuffix('=').removesuffix('=')

would work right now in 3.9 (I think).

Can confirm:

```
>>> 'abc==='.removesuffix('=').removesuffix('=')
'abc='
>>> 'abc=='.removesuffix('=').removesuffix('=')
'abc'
>>> 'abc='.removesuffix('=').removesuffix('=')
'abc'
>>> 'abc'.removesuffix('=').removesuffix('=')
'abc'
```