Skip to content
Myr

Remove already defined method

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

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parent 62b0b66 · Browse files · 1 file+0 added−7 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+0 added−7 removed

  • other:+0 added−7 removed

1 file+0 added−7 removed

modified:flask/wrappers.py-7 removed
206 unmodified lines
207 If you want to replace the response object used you can subclass this and208 set :attr:`~flask.Flask.response_class` to your subclass.209 """210 default_mimetype = 'text/html'211212 def _get_data_for_json(self, cache):213 getter = getattr(self, 'get_data', None)214 if getter is not None:215 # Ignore the cache flag since response doesn't support it216 return getter()217 return self.data