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
901657e7
Commit
901657e7
authored
Jul 10, 2017
by
Ryan P Kilby
Committed by
Carlton Gibson
Sep 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add banned imports to prevent standard json import
parent
8ab75a2f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
requirements/requirements-codestyle.txt
+1
-0
rest_framework/utils/encoders.py
+1
-1
rest_framework/utils/json.py
+1
-1
setup.cfg
+1
-0
No files found.
requirements/requirements-codestyle.txt
View file @
901657e7
# PEP8 code linting, which we run on all commits.
flake8==2.4.0
flake8-tidy-imports==1.1.0
pep8==1.5.7
# Sort and lint imports
...
...
rest_framework/utils/encoders.py
View file @
901657e7
...
...
@@ -5,7 +5,7 @@ from __future__ import absolute_import, unicode_literals
import
datetime
import
decimal
import
json
import
json
# noqa
import
uuid
from
django.db.models.query
import
QuerySet
...
...
rest_framework/utils/json.py
View file @
901657e7
...
...
@@ -2,7 +2,7 @@
from
__future__
import
absolute_import
import
functools
import
json
import
json
# noqa
def
strict_constant
(
o
):
...
...
setup.cfg
View file @
901657e7
...
...
@@ -6,3 +6,4 @@ license_file = LICENSE.md
[flake8]
ignore = E501
banned-modules = json = use from rest_framework.utils import json!
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