From c667d56de3d0129971175d75f0389d5fef48d0e3 Mon Sep 17 00:00:00 2001 From: David Lord Date: Wed, 18 Dec 2024 09:33:31 -0800 Subject: [PATCH] change "per default" to "by default" --- CHANGES.rst | 2 +- docs/templates.rst | 2 +- docs/tricks.rst | 2 +- src/jinja2/loaders.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 7fb72976..feb1e6c3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1001,7 +1001,7 @@ Released 2008-07-17, codename Jinjavitus evaluates to ``false``. - Improved error reporting for undefined values by providing a position. -- ``filesizeformat`` filter uses decimal prefixes now per default and +- ``filesizeformat`` filter uses decimal prefixes now by default and can be set to binary mode with the second parameter. - Fixed bug in finalizer diff --git a/docs/templates.rst b/docs/templates.rst index 2bb28f61..0eab8e66 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -528,7 +528,7 @@ However, the name after the `endblock` word must match the block name. Block Nesting and Scope ~~~~~~~~~~~~~~~~~~~~~~~ -Blocks can be nested for more complex layouts. However, per default blocks +Blocks can be nested for more complex layouts. However, by default blocks may not access variables from outer scopes:: {% for item in seq %} diff --git a/docs/tricks.rst b/docs/tricks.rst index b58c5bb0..3a7084a6 100644 --- a/docs/tricks.rst +++ b/docs/tricks.rst @@ -21,7 +21,7 @@ for a neat trick. Usually child templates extend from one template that adds a basic HTML skeleton. However it's possible to put the `extends` tag into an `if` tag to only extend from the layout template if the `standalone` variable evaluates -to false which it does per default if it's not defined. Additionally a very +to false, which it does by default if it's not defined. Additionally a very basic skeleton is added to the file so that if it's indeed rendered with `standalone` set to `True` a very basic HTML skeleton is added:: diff --git a/src/jinja2/loaders.py b/src/jinja2/loaders.py index 8c2c86cd..b1ad401c 100644 --- a/src/jinja2/loaders.py +++ b/src/jinja2/loaders.py @@ -430,7 +430,7 @@ class DictLoader(BaseLoader): >>> loader = DictLoader({'index.html': 'source here'}) - Because auto reloading is rarely useful this is disabled per default. + Because auto reloading is rarely useful this is disabled by default. """ def __init__(self, mapping: t.Mapping[str, str]) -> None: -- 2.47.2