Skip to content
Myr

Better internal method name

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

authored by Armin Ronacher · committed by Armin Ronacher · parent f3db68c · Browse files · 2 files+3 added−3 removed
This commit

State

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

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:flask/debughelpers.py+1 added-1 removed
31 unmodified lines
32 def __str__(self):33 return self.msg343536def make_enctype_error_multidict(request):36def attach_enctype_error_multidict(request):37 """Since Flask 0.8 we're monkeypatching the files object in case a38 request is detected that does not use multipart form data but the files39 object is accessed.40 """
12 unmodified lines
modified:flask/wrappers.py+2 added-2 removed
10 unmodified lines
1112from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase13from werkzeug.utils import cached_property1415from .debughelpers import make_enctype_error_multidict15from .debughelpers import attach_enctype_error_multidict16from .helpers import json, _assert_have_json17from .globals import _request_ctx_stack1819
87 unmodified lines
107 # subclass that raises a different error for key errors.108 ctx = _request_ctx_stack.top109 if ctx is not None and ctx.app.debug and \110 self.mimetype != 'multipart/form-data' and not self.files:111 make_enctype_error_multidict(self)111 attach_enctype_error_multidict(self)112113114class Response(ResponseBase):115 """The response object that is used by default in Flask. Works like the
8 unmodified lines