Skip to content

Commit 709f74e

Browse files
committed
python 2 compatibility
1 parent d47f9ed commit 709f74e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

etcd3/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
from threading import Lock
1616
from requests.exceptions import ChunkedEncodingError, ConnectTimeout
1717
from urllib3.exceptions import MaxRetryError
18-
from http.client import IncompleteRead
18+
try:
19+
from httplib import IncompleteRead
20+
except ImportError:
21+
from http.client import IncompleteRead
1922

2023
try: # pragma: no cover
2124
from inspect import getfullargspec as getargspec

0 commit comments

Comments
 (0)