Skip to content

Commit

Permalink
remove DeprecationWarning: import Iterable from collections.abc if py…
Browse files Browse the repository at this point in the history
…thon >= 3.6 (#1075)

Co-authored-by: Nick James <nick.james@dorabot.com>
  • Loading branch information
driftregion and Nick James committed Jun 18, 2020
1 parent f761ccf commit 34d98f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion opcua/common/subscription.py
Expand Up @@ -4,7 +4,11 @@
import time
import logging
from threading import Lock
from collections import Iterable
import sys
if sys.version_info.major == 3 and sys.version_info.minor >= 6:
from collections.abc import Iterable
else:
from collections import Iterable

from opcua import ua
from opcua.common import events
Expand Down

0 comments on commit 34d98f9

Please sign in to comment.