Commit 96ae897e authored by chrisjbremner's avatar chrisjbremner Committed by oroulet

Resolve collections.Iterable DeprecationWarning for Python 3.8 (#102)

* Resolve collections.Iterable DeprecationWarning

* Import from collections.abc
parent 46e84afc
......@@ -3,7 +3,7 @@ high level interface to subscriptions
"""
import asyncio
import logging
import collections
import collections.abc
from typing import Union, List, Iterable
from asyncua import ua
......@@ -207,7 +207,7 @@ class Subscription:
:return: Integer handle or if multiple Nodes were given a List of Integer handles/ua.StatusCode
"""
is_list = True
if isinstance(nodes, collections.Iterable):
if isinstance(nodes, collections.abc.Iterable):
nodes = list(nodes)
else:
nodes = [nodes]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment