Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

strips should accept lists #69

Closed
aaronsw opened this Issue Jun 7, 2011 · 0 comments

Comments

Projects
None yet
2 participants
Contributor

aaronsw commented Jun 7, 2011

Passing strips functions a list should be equivalent to running strips once for every item in the list.

>>> web.lstrips('http://foo.org/', ['http://', 'https://'])
'foo.org/'
>>> web.lstrips('FOOBARBAZ', ['FOO', 'BAR'])
'BAZ'
>>> web.lstrips('FOOBARBAZ', ['BAR', 'FOO'])
'BARBAZ'

@ghost ghost assigned anandology and aaronsw Jun 7, 2011

@aaronsw aaronsw closed this in a01f465 Jun 7, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment