fix string concats left over by black
This commit is contained in:
parent
3db4697959
commit
53c893b646
10 changed files with 17 additions and 18 deletions
|
|
@ -1931,7 +1931,7 @@ class Flask(_PackageBoundObject):
|
|||
if not from_error_handler:
|
||||
raise
|
||||
self.logger.exception(
|
||||
"Request finalizing failed with an " "error while handling an error"
|
||||
"Request finalizing failed with an error while handling an error"
|
||||
)
|
||||
return response
|
||||
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ def get_version(ctx, param, value):
|
|||
import werkzeug
|
||||
from . import __version__
|
||||
|
||||
message = "Python %(python)s\n" "Flask %(flask)s\n" "Werkzeug %(werkzeug)s"
|
||||
message = "Python %(python)s\nFlask %(flask)s\nWerkzeug %(werkzeug)s"
|
||||
click.echo(
|
||||
message
|
||||
% {
|
||||
|
|
|
|||
|
|
@ -437,9 +437,10 @@ class RequestContext(object):
|
|||
if app_ctx is not None:
|
||||
app_ctx.pop(exc)
|
||||
|
||||
assert (
|
||||
rv is self
|
||||
), "Popped wrong request context. " "(%r instead of %r)" % (rv, self)
|
||||
assert rv is self, "Popped wrong request context. (%r instead of %r)" % (
|
||||
rv,
|
||||
self,
|
||||
)
|
||||
|
||||
def auto_pop(self, exc):
|
||||
if self.request.environ.get("flask._preserve_context") or (
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ def _endpoint_from_view_func(view_func):
|
|||
"""Internal helper that returns the default endpoint for a given
|
||||
function. This always is the function name.
|
||||
"""
|
||||
assert view_func is not None, "expected view func if endpoint " "is not provided."
|
||||
assert view_func is not None, "expected view func if endpoint is not provided."
|
||||
return view_func.__name__
|
||||
|
||||
|
||||
|
|
@ -598,9 +598,7 @@ def send_file(
|
|||
headers = Headers()
|
||||
if as_attachment:
|
||||
if attachment_filename is None:
|
||||
raise TypeError(
|
||||
"filename unavailable, required for " "sending as attachment"
|
||||
)
|
||||
raise TypeError("filename unavailable, required for sending as attachment")
|
||||
|
||||
if not isinstance(attachment_filename, text_type):
|
||||
attachment_filename = attachment_filename.decode("utf-8")
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ class FlaskClient(Client):
|
|||
"""
|
||||
if self.cookie_jar is None:
|
||||
raise RuntimeError(
|
||||
"Session transactions only make sense " "with cookies enabled."
|
||||
"Session transactions only make sense with cookies enabled."
|
||||
)
|
||||
app = self.application
|
||||
environ_overrides = kwargs.setdefault("environ_overrides", {})
|
||||
|
|
@ -167,7 +167,7 @@ class FlaskClient(Client):
|
|||
sess = session_interface.open_session(app, c.request)
|
||||
if sess is None:
|
||||
raise RuntimeError(
|
||||
"Session backend did not open a session. " "Check the configuration"
|
||||
"Session backend did not open a session. Check the configuration"
|
||||
)
|
||||
|
||||
# Since we have to open a new request context for the session
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue