Skip to content

Commit 2c3ec57

Browse files
authored
Merge pull request #106 from hroncok/abc
Avoid DeprecationWarning
2 parents 6497561 + d74c3f1 commit 2c3ec57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

socks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
"""
5656

5757
from base64 import b64encode
58-
from collections import Callable
58+
try:
59+
from collections.abc import Callable
60+
except ImportError:
61+
from collections import Callable
5962
from errno import EOPNOTSUPP, EINVAL, EAGAIN
6063
import functools
6164
from io import BytesIO

0 commit comments

Comments
 (0)