fix one typo and two pycodestyle suggestions
This commit is contained in:
parent
36af821edf
commit
40afc6ceec
3 changed files with 3 additions and 3 deletions
|
|
@ -184,7 +184,7 @@ context is active when a request context is, or when a CLI command is
|
||||||
run. If you're storing something that should be closed, use
|
run. If you're storing something that should be closed, use
|
||||||
:meth:`~flask.Flask.teardown_appcontext` to ensure that it gets closed
|
:meth:`~flask.Flask.teardown_appcontext` to ensure that it gets closed
|
||||||
when the application context ends. If it should only be valid during a
|
when the application context ends. If it should only be valid during a
|
||||||
request, or would not be used in the CLI outside a reqeust, use
|
request, or would not be used in the CLI outside a request, use
|
||||||
:meth:`~flask.Flask.teardown_request`.
|
:meth:`~flask.Flask.teardown_request`.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -648,7 +648,7 @@ def _path_is_ancestor(path, other):
|
||||||
"""Take ``other`` and remove the length of ``path`` from it. Then join it
|
"""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
|
to ``path``. If it is the original value, ``path`` is an ancestor of
|
||||||
``other``."""
|
``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:
|
def load_dotenv(path: str | os.PathLike | None = None) -> bool:
|
||||||
|
|
|
||||||
|
|
@ -325,7 +325,7 @@ class Config(dict):
|
||||||
if not k.startswith(namespace):
|
if not k.startswith(namespace):
|
||||||
continue
|
continue
|
||||||
if trim_namespace:
|
if trim_namespace:
|
||||||
key = k[len(namespace) :]
|
key = k[len(namespace):]
|
||||||
else:
|
else:
|
||||||
key = k
|
key = k
|
||||||
if lowercase:
|
if lowercase:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue