Skip to content

Commit 0410317

Browse files
authored
Fallback to from collections import Iterable for older python versions
1 parent e789b99 commit 0410317

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pythonosc/udp_client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
"""UDP Clients for sending OSC messages to an OSC server"""
22

3-
from collections.abc import Iterable
3+
try:
4+
from collections.abc import Iterable
5+
catch ImportError: # python 3.5
6+
from collections import Iterable
7+
48
import socket
59

610
from .osc_message_builder import OscMessageBuilder

0 commit comments

Comments
 (0)