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
7efc6e82
Commit
7efc6e82
authored
Sep 20, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dumbass __all__ variables
parent
87dae4d8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
36 deletions
+0
-36
rest_framework/parsers.py
+0
-11
rest_framework/permissions.py
+0
-9
rest_framework/renderers.py
+0
-13
rest_framework/request.py
+0
-3
No files found.
rest_framework/parsers.py
View file @
7efc6e82
...
...
@@ -26,17 +26,6 @@ import decimal
from
io
import
BytesIO
__all__
=
(
'BaseParser'
,
'JSONParser'
,
'PlainTextParser'
,
'FormParser'
,
'MultiPartParser'
,
'YAMLParser'
,
'XMLParser'
)
class
DataAndFiles
(
object
):
def
__init__
(
self
,
data
,
files
):
self
.
data
=
data
...
...
rest_framework/permissions.py
View file @
7efc6e82
...
...
@@ -5,15 +5,6 @@ for checking if a request passes a certain set of constraints.
Permission behavior is provided by mixing the :class:`mixins.PermissionsMixin` class into a :class:`View` class.
"""
__all__
=
(
'BasePermission'
,
'FullAnonAccess'
,
'IsAuthenticated'
,
'IsAdminUser'
,
'IsUserOrIsAnonReadOnly'
,
'PerUserThrottling'
,
'PerViewThrottling'
,
)
SAFE_METHODS
=
[
'GET'
,
'HEAD'
,
'OPTIONS'
]
...
...
rest_framework/renderers.py
View file @
7efc6e82
...
...
@@ -21,19 +21,6 @@ from rest_framework.fields import FloatField, IntegerField, DateTimeField, DateF
import
string
__all__
=
(
'BaseRenderer'
,
'TemplateRenderer'
,
'JSONRenderer'
,
'JSONPRenderer'
,
'DocumentingHTMLRenderer'
,
'DocumentingXHTMLRenderer'
,
'DocumentingPlainTextRenderer'
,
'XMLRenderer'
,
'YAMLRenderer'
)
class
BaseRenderer
(
object
):
"""
All renderers must extend this class, set the :attr:`media_type` attribute,
...
...
rest_framework/request.py
View file @
7efc6e82
...
...
@@ -16,9 +16,6 @@ from rest_framework.settings import api_settings
from
rest_framework.utils.mediatypes
import
is_form_media_type
__all__
=
(
'Request'
,)
class
Empty
(
object
):
"""
Placeholder for unset attributes.
...
...
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