From 2498524edcff665256429fd589be559bd556ba2b Mon Sep 17 00:00:00 2001 From: Bozhko Egor Date: Mon, 10 Jul 2017 10:40:16 +0300 Subject: [PATCH] fix bug with lstrip --- odata/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odata/metadata.py b/odata/metadata.py index c4e8edf..cc37b03 100644 --- a/odata/metadata.py +++ b/odata/metadata.py @@ -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