Skip to content

Commit 902d624

Browse files
authored
Merge pull request #229 from Achimh3011/bug/228
Move import of ABCs from collections to collections.abc
2 parents 0fe365e + 979f952 commit 902d624

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

AUTHORS.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ Patches and Suggestions
4747
- Yorgos Pagles <yorgos@pagles.org>
4848

4949
- Thomas Hauk <thauk@copperleaf.com>
50+
51+
- Achim Herwig <python@wodca.de>
52+

requests_toolbelt/_compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
This module is private. If you use it, and something breaks, you were
99
warned
1010
"""
11-
from collections import Mapping, MutableMapping
1211
import sys
1312

1413
import requests
@@ -53,9 +52,11 @@
5352
PY3 = sys.version_info > (3, 0)
5453

5554
if PY3:
55+
from collections.abc import Mapping, MutableMapping
5656
import queue
5757
from urllib.parse import urlencode, urljoin
5858
else:
59+
from collections import Mapping, MutableMapping
5960
import Queue as queue
6061
from urllib import urlencode
6162
from urlparse import urljoin

0 commit comments

Comments
 (0)