tuomur / python-odata

A simple library for read/write access to OData services
MIT License
79 stars 59 forks source link

fix bug with lstrip #12

Closed bozhko-egor closed 7 years ago

bozhko-egor commented 7 years ago

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.