fix bug with lstrip by bozhko-egor · Pull Request #12 · tuomur/python-odata · GitHub
Skip to content

fix bug with lstrip#12

Merged
tuomur merged 1 commit into
tuomur:masterfrom
bozhko-egor:master
Jul 16, 2017
Merged

fix bug with lstrip#12
tuomur merged 1 commit into
tuomur:masterfrom
bozhko-egor:master

Conversation

@bozhko-egor

Copy link
Copy Markdown
Contributor

Lstrip cuts more than needed if propertys name starts with capital C(or any lowercase character from 'ollection').

>>> property = 'Collection(Cats)'
>>> property.lstrip('Collection(')

'ats)'

From python docs: str.lstrip([chars]) [...] The chars argument is not a prefix; rather, all combinations of its values are stripped.

@tuomur tuomur merged commit a379c6c into tuomur:master Jul 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants