Skip to content

Commit e699f64

Browse files
committed
Spell this import so mypy understands the branches
1 parent 431ad6a commit e699f64

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pythonosc/udp_client.py

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

3-
try:
3+
import sys
4+
5+
if sys.version_info > (3, 5):
46
from collections.abc import Iterable
5-
except ImportError: # python 3.5
7+
else:
68
from collections import Iterable
79

810
import socket

0 commit comments

Comments
 (0)