Adding flake8 corrections

This commit is contained in:
Andy Neff 2017-02-21 18:29:16 -05:00
parent 15351afa3a
commit da63f5e82d

View File

@ -6,10 +6,10 @@ from __future__ import unicode_literals
import datetime
import decimal
import json
from json.encoder import (FLOAT_REPR, INFINITY, c_make_encoder,
encode_basestring_ascii, encode_basestring,
_make_iterencode)
import uuid
from json.encoder import (FLOAT_REPR, INFINITY, _make_iterencode,
c_make_encoder, encode_basestring,
encode_basestring_ascii)
from django.db.models.query import QuerySet
from django.utils import six, timezone
@ -55,7 +55,7 @@ class JSONEncoder(json.JSONEncoder):
return _orig_encoder(o)
def floatstr(o, allow_nan=self.allow_nan,
_repr=FLOAT_REPR, _inf=INFINITY, _neginf=-INFINITY):
_repr=FLOAT_REPR, _inf=INFINITY, _neginf=-INFINITY):
# Check for specials. Note that this type of test is processor
# and/or platform-specific, so do tests which don't depend on the
# internals.
@ -76,7 +76,6 @@ class JSONEncoder(json.JSONEncoder):
return text
if (_one_shot and c_make_encoder is not None
and self.indent is None):
_iterencode = c_make_encoder(