mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Remove parse_qs from compat, now py2.5 support is dropped
This commit is contained in:
parent
89a0b22306
commit
d2583b809c
|
@ -10,15 +10,6 @@ except ImportError:
|
||||||
import StringIO
|
import StringIO
|
||||||
|
|
||||||
|
|
||||||
# parse_qs from 'urlparse' module unless python 2.5, in which case from 'cgi'
|
|
||||||
try:
|
|
||||||
# python >= 2.6
|
|
||||||
from urlparse import parse_qs
|
|
||||||
except ImportError:
|
|
||||||
# python < 2.6
|
|
||||||
from cgi import parse_qs
|
|
||||||
|
|
||||||
|
|
||||||
# django.views.generic.View (Django >= 1.3)
|
# django.views.generic.View (Django >= 1.3)
|
||||||
try:
|
try:
|
||||||
from django.views.generic import View
|
from django.views.generic import View
|
||||||
|
|
Loading…
Reference in New Issue
Block a user