From 1d5abfadd7132c9a78e14e5ba6c07aed47115280 Mon Sep 17 00:00:00 2001 From: lizard Date: Fri, 24 Nov 2023 16:03:31 -0600 Subject: [PATCH 1/2] Fixing issue 5342: 'The double quote is missing in the string' --- CHANGES.rst | 1 + src/flask/cli.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index c7ae2f651f..9f79995b46 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,7 @@ Version 3.0.1 Unreleased - Correct type for ``path`` argument to ``send_file``. :issue:`5230` +- Fix a typo in an error message for the ``flask run --key`` option. :pr:`5344` Version 3.0.0 diff --git a/src/flask/cli.py b/src/flask/cli.py index dda266b30c..751dfd1f60 100644 --- a/src/flask/cli.py +++ b/src/flask/cli.py @@ -795,7 +795,9 @@ def _validate_key(ctx, param, value): if is_context: raise click.BadParameter( - 'When "--cert" is an SSLContext object, "--key is not used.', ctx, param + 'When "--cert" is an SSLContext object, "--key" is not used.', + ctx, + param, ) if not cert: From 8a66990c6161b30422359244a052805dc98a5059 Mon Sep 17 00:00:00 2001 From: Ben Huebscher Date: Tue, 5 Dec 2023 09:58:59 -0800 Subject: [PATCH 2/2] Update docs to address redesigned macOS settings app --- docs/server.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/server.rst b/docs/server.rst index d38aa12089..11e976bc73 100644 --- a/docs/server.rst +++ b/docs/server.rst @@ -76,8 +76,8 @@ following example shows that process id 6847 is using port 5000. TCP 127.0.0.1:5000 0.0.0.0:0 LISTENING 6847 macOS Monterey and later automatically starts a service that uses port -5000. To disable the service, go to System Preferences, Sharing, and -disable "AirPlay Receiver". +5000. You can choose to disable this service instead of using a different port by +searching for "AirPlay Receiver" in System Preferences and toggling it off. Deferred Errors on Reload