Skip to content
Myr

Remove unused import and clean control flow

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Keyan Pishdadian · committed by Keyan Pishdadian · parent 44da905 · Browse files · 1 file+3 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−4 removed

  • other:+3 added−4 removed

1 file+3 added−4 removed

modified:flask/wrappers.py+3 added-4 removed
11 unmodified lines
12from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase13from werkzeug.exceptions import BadRequest1415from . import json16from .globals import _request_ctx_stack, current_app16from .globals import _request_ctx_stack1718_missing = object()1920
153 unmodified lines
174175 .. versionadded:: 0.8176 """177 ctx = _request_ctx_stack.top178 if ctx is not None:179 if ctx.app.config.get('DEBUG', False):180 raise BadRequest('Failed to decode JSON object: {0}'.format(e))178 if ctx is not None and ctx.app.config.get('DEBUG', False):179 raise BadRequest('Failed to decode JSON object: {0}'.format(e))180 raise BadRequest()181182 def _load_form_data(self):183 RequestBase._load_form_data(self)
20 unmodified lines