diff --git a/dygraph/cvlibs/manager.py b/dygraph/cvlibs/manager.py index 8c12268416f9820f2822391e490bf825347a0648..e4a952b3cca0f451b18a7d5bb2c9c0c4654d8c11 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: