From 4ada855f472c0558ea932da0fbb20ddd743c5bd4 Mon Sep 17 00:00:00 2001 From: Ivan Mishalkin Date: Wed, 20 May 2020 17:07:31 +0300 Subject: [PATCH] [EN-1414] better get subs references method --- dxfeed/core/DXFeedPy.pyx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dxfeed/core/DXFeedPy.pyx b/dxfeed/core/DXFeedPy.pyx index 0474bb5..fddb1f3 100644 --- a/dxfeed/core/DXFeedPy.pyx +++ b/dxfeed/core/DXFeedPy.pyx @@ -70,8 +70,7 @@ cdef class ConnectionClass: :list List of weakref objects. Empty list if no refs """ - refs = list(self.__sub_refs) if self.__sub_refs else list() - return refs + return list(self.__sub_refs) cpdef SubscriptionClass make_new_subscription(self, data_len: int): cdef SubscriptionClass out = SubscriptionClass(data_len)