MCPcopy Index your code
hub / github.com/webpy/webpy / rstrips

Function rstrips

web/utils.py:315–323  ·  view source on GitHub ↗

removes the string `remove` from the right of `text` >>> rstrips("foobar", "bar") 'foo'

(text, remove)

Source from the content-addressed store, hash-verified

313
314
315def 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
326def lstrips(text, remove):

Callers 1

stripsFunction · 0.85

Calls 1

_stripsFunction · 0.85

Tested by

no test coverage detected