From a71f5f55d12f18b9d3d43ae57d75d9af6cddfb9b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Aug 2022 19:22:27 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/flask/cli.py | 2 +- src/flask/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flask/cli.py b/src/flask/cli.py index 574264dc..82fe8194 100644 --- a/src/flask/cli.py +++ b/src/flask/cli.py @@ -648,7 +648,7 @@ def _path_is_ancestor(path, other): """Take ``other`` and remove the length of ``path`` from it. Then join it to ``path``. If it is the original value, ``path`` is an ancestor of ``other``.""" - return os.path.join(path, other[len(path):].lstrip(os.sep)) == other + return os.path.join(path, other[len(path) :].lstrip(os.sep)) == other def load_dotenv(path: str | os.PathLike | None = None) -> bool: diff --git a/src/flask/config.py b/src/flask/config.py index 802c88ef..7b6a137a 100644 --- a/src/flask/config.py +++ b/src/flask/config.py @@ -325,7 +325,7 @@ class Config(dict): if not k.startswith(namespace): continue if trim_namespace: - key = k[len(namespace):] + key = k[len(namespace) :] else: key = k if lowercase: