Skip to content

Commit a379c6c

Browse files
author
Tuomas Mursu
authored
Merge pull request #12 from bozhko-egor/master
Fix incorrect usage of lstrip
2 parents bf3351a + 2498524 commit a379c6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

odata/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def property_type_to_python(self, edm_type):
5050

5151
def _type_is_collection(self, typename):
5252
if typename.startswith('Collection('):
53-
stripped = typename.lstrip('Collection(').rstrip(')')
53+
stripped = typename[11:-1]
5454
return True, stripped
5555
else:
5656
return False, typename

0 commit comments

Comments
 (0)