summaryrefslogtreecommitdiff
path: root/django/templatetags
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2022-01-28 20:15:53 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-10-31 12:30:13 +0100
commitd3cb91db87b78629c0d2682630e90a048275179e (patch)
tree92476354cbb4df1bcff3cd1514a1bac6cbc98676 /django/templatetags
parenta320aab5129f4019b3c1d28b7a3b509582bc56f9 (diff)
Used more augmented assignment statements.
Identified using the following command: $ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]'
Diffstat (limited to 'django/templatetags')
-rw-r--r--django/templatetags/i18n.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/templatetags/i18n.py b/django/templatetags/i18n.py
index 8b4824fbbf..b26cc701b4 100644
--- a/django/templatetags/i18n.py
+++ b/django/templatetags/i18n.py
@@ -187,7 +187,7 @@ class BlockTranslateNode(Node):
data = {v: render_value(v) for v in vars}
context.pop()
try:
- result = result % data
+ result %= data
except (KeyError, ValueError):
if nested:
# Either string is malformed, or it's a bug