Skip to content
Myr

Some small cleanup

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 62dbe0e · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:flask/app.py+2 added-2 removed
32 unmodified lines
33from .templating import DispatchingJinjaLoader, Environment, \34 _default_template_ctx_processor35from .signals import request_started, request_finished, got_request_exception, \36 request_tearing_down, appcontext_tearing_down37from ._compat import reraise, string_types, integer_types37from ._compat import reraise, string_types, text_type, integer_types3839# a lock used for logger initialization40_logger_lock = Lock()41
1529 unmodified lines
1571 # When we create a response object directly, we let the constructor1572 # set the headers and status. We do this because there can be1573 # some extra logic involved when creating these objects with1574 # specific values (like default content type selection).1575 if isinstance(rv, string_types + (bytes, )):1575 if isinstance(rv, (text_type, bytes, bytearray)):1576 rv = self.response_class(rv, headers=headers, status=status)1577 headers = status = None1578 else:1579 rv = self.response_class.force_type(rv, request.environ)
265 unmodified lines