Change Ellipsis to None for consistency

This commit is contained in:
Eli Uriegas 2017-01-05 15:29:57 -06:00 committed by GitHub
parent 035cbf84ae
commit baf8254907

View File

@ -56,7 +56,7 @@ class Request(dict):
# Init but do not inhale
self.body = None
self.parsed_json = ...
self.parsed_json = None
self.parsed_form = None
self.parsed_files = None
self.parsed_args = None
@ -64,7 +64,7 @@ class Request(dict):
@property
def json(self):
if self.parsed_json is ...:
if self.parsed_json is None:
try:
self.parsed_json = json_loads(self.body)
except Exception: