Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
95af92ca
Commit
95af92ca
authored
Dec 04, 2014
by
Tymur Maryokhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed custom urlparse compat
parent
d54c67d7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
10 deletions
+5
-10
rest_framework/compat.py
+1
-7
rest_framework/parsers.py
+2
-1
rest_framework/relations.py
+1
-1
rest_framework/templatetags/rest_framework.py
+1
-1
No files found.
rest_framework/compat.py
View file @
95af92ca
...
@@ -10,6 +10,7 @@ import inspect
...
@@ -10,6 +10,7 @@ import inspect
from
django.core.exceptions
import
ImproperlyConfigured
from
django.core.exceptions
import
ImproperlyConfigured
from
django.utils.encoding
import
force_text
from
django.utils.encoding
import
force_text
from
django.utils.six.moves.urllib
import
parse
as
urlparse
from
django.conf
import
settings
from
django.conf
import
settings
from
django.utils
import
six
from
django.utils
import
six
import
django
import
django
...
@@ -60,13 +61,6 @@ if 'guardian' in settings.INSTALLED_APPS:
...
@@ -60,13 +61,6 @@ if 'guardian' in settings.INSTALLED_APPS:
pass
pass
# urlparse compat import (Required because it changed in python 3.x)
try
:
from
urllib
import
parse
as
urlparse
except
ImportError
:
import
urlparse
# UserDict moves in Python 3
# UserDict moves in Python 3
try
:
try
:
from
UserDict
import
UserDict
from
UserDict
import
UserDict
...
...
rest_framework/parsers.py
View file @
95af92ca
...
@@ -12,8 +12,9 @@ from django.http import QueryDict
...
@@ -12,8 +12,9 @@ from django.http import QueryDict
from
django.http.multipartparser
import
MultiPartParser
as
DjangoMultiPartParser
from
django.http.multipartparser
import
MultiPartParser
as
DjangoMultiPartParser
from
django.http.multipartparser
import
MultiPartParserError
,
parse_header
,
ChunkIter
from
django.http.multipartparser
import
MultiPartParserError
,
parse_header
,
ChunkIter
from
django.utils
import
six
from
django.utils
import
six
from
django.utils.six.moves.urllib
import
parse
as
urlparse
from
django.utils.encoding
import
force_text
from
django.utils.encoding
import
force_text
from
rest_framework.compat
import
etree
,
yaml
,
urlparse
from
rest_framework.compat
import
etree
,
yaml
from
rest_framework.exceptions
import
ParseError
from
rest_framework.exceptions
import
ParseError
from
rest_framework
import
renderers
from
rest_framework
import
renderers
import
json
import
json
...
...
rest_framework/relations.py
View file @
95af92ca
from
django.utils.encoding
import
smart_text
from
django.utils.encoding
import
smart_text
from
rest_framework.compat
import
urlparse
from
rest_framework.fields
import
get_attribute
,
empty
,
Field
from
rest_framework.fields
import
get_attribute
,
empty
,
Field
from
rest_framework.reverse
import
reverse
from
rest_framework.reverse
import
reverse
from
rest_framework.utils
import
html
from
rest_framework.utils
import
html
...
@@ -7,6 +6,7 @@ from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured
...
@@ -7,6 +6,7 @@ from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured
from
django.core.urlresolvers
import
resolve
,
get_script_prefix
,
NoReverseMatch
,
Resolver404
from
django.core.urlresolvers
import
resolve
,
get_script_prefix
,
NoReverseMatch
,
Resolver404
from
django.db.models.query
import
QuerySet
from
django.db.models.query
import
QuerySet
from
django.utils
import
six
from
django.utils
import
six
from
django.utils.six.moves.urllib
import
parse
as
urlparse
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.utils.translation
import
ugettext_lazy
as
_
...
...
rest_framework/templatetags/rest_framework.py
View file @
95af92ca
...
@@ -3,11 +3,11 @@ from django import template
...
@@ -3,11 +3,11 @@ from django import template
from
django.core.urlresolvers
import
reverse
,
NoReverseMatch
from
django.core.urlresolvers
import
reverse
,
NoReverseMatch
from
django.http
import
QueryDict
from
django.http
import
QueryDict
from
django.utils
import
six
from
django.utils
import
six
from
django.utils.six.moves.urllib
import
parse
as
urlparse
from
django.utils.encoding
import
iri_to_uri
,
force_text
from
django.utils.encoding
import
iri_to_uri
,
force_text
from
django.utils.html
import
escape
from
django.utils.html
import
escape
from
django.utils.safestring
import
SafeData
,
mark_safe
from
django.utils.safestring
import
SafeData
,
mark_safe
from
django.utils.html
import
smart_urlquote
from
django.utils.html
import
smart_urlquote
from
rest_framework.compat
import
urlparse
from
rest_framework.renderers
import
HTMLFormRenderer
from
rest_framework.renderers
import
HTMLFormRenderer
import
re
import
re
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment