From fe1b91b7a5a72decaea179fc1acef5bfc06f77bf Mon Sep 17 00:00:00 2001 From: michaelowenliu Date: Thu, 27 Aug 2020 15:07:40 +0800 Subject: [PATCH] update collections style supporting in py3.8 --- dygraph/cvlibs/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dygraph/cvlibs/manager.py b/dygraph/cvlibs/manager.py index 8c122684..e4a952b3 100644 --- a/dygraph/cvlibs/manager.py +++ b/dygraph/cvlibs/manager.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import collections +from collections.abc import Sequence import inspect @@ -98,7 +98,7 @@ class ComponentManager: """ # Check whether the type is a sequence - if isinstance(components, collections.Sequence): + if isinstance(components, Sequence): for component in components: self._add_single_component(component) else: -- GitLab