Skip to content

Commit

Permalink
Merge pull request #12 from bozhko-egor/master
Browse files Browse the repository at this point in the history
Fix incorrect usage of lstrip
  • Loading branch information
Tuomas Mursu committed Jul 16, 2017
2 parents bf3351a + 2498524 commit a379c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odata/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def property_type_to_python(self, edm_type):

def _type_is_collection(self, typename):
if typename.startswith('Collection('):
stripped = typename.lstrip('Collection(').rstrip(')')
stripped = typename[11:-1]
return True, stripped
else:
return False, typename
Expand Down

0 comments on commit a379c6c

Please sign in to comment.