mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
Remove unneeded Mapping compat code
This commit is contained in:
parent
467bc56e08
commit
96b2700516
|
@ -79,12 +79,6 @@ except ImportError:
|
||||||
from collections import UserDict
|
from collections import UserDict
|
||||||
from collections import MutableMapping as DictMixin
|
from collections import MutableMapping as DictMixin
|
||||||
|
|
||||||
# Mapping is new in python 2.6
|
|
||||||
try:
|
|
||||||
from collections import Mapping
|
|
||||||
except ImportError:
|
|
||||||
Mapping = dict
|
|
||||||
|
|
||||||
# Try to import PIL in either of the two ways it can end up installed.
|
# Try to import PIL in either of the two ways it can end up installed.
|
||||||
try:
|
try:
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
Loading…
Reference in New Issue
Block a user