removes the string `remove` from the right of `text` >>> rstrips("foobar", "bar") 'foo'
(text, remove)
| 313 | |
| 314 | |
| 315 | def rstrips(text, remove): |
| 316 | """ |
| 317 | removes the string `remove` from the right of `text` |
| 318 | |
| 319 | >>> rstrips("foobar", "bar") |
| 320 | 'foo' |
| 321 | |
| 322 | """ |
| 323 | return _strips("r", text, remove) |
| 324 | |
| 325 | |
| 326 | def lstrips(text, remove): |