summaryrefslogtreecommitdiff
path: root/babel
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2023-01-18 20:30:25 +0200
committerAarni Koskela <akx@iki.fi>2023-01-18 21:20:51 +0200
commitd14f9565c03ba10d493437784db439ca260ba69d (patch)
treec75005ebf3ac8b79a6058da9823331f7d3d3765e /babel
parent82d345a66e850f643607ac9fcafd9b9a2a89d1e1 (diff)
downloadbabel-d14f9565c03ba10d493437784db439ca260ba69d.tar.gz
Enable E741 (ambiguous variable name) lint
Diffstat (limited to 'babel')
-rw-r--r--babel/messages/pofile.py6
-rw-r--r--babel/plural.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/babel/messages/pofile.py b/babel/messages/pofile.py
index 88cc043..aef8cbf 100644
--- a/babel/messages/pofile.py
+++ b/babel/messages/pofile.py
@@ -451,10 +451,10 @@ def normalize(string: str, prefix: str = '', width: int = 76) -> str:
buf = []
size = 2
while chunks:
- l = len(escape(chunks[-1])) - 2 + prefixlen
- if size + l < width:
+ length = len(escape(chunks[-1])) - 2 + prefixlen
+ if size + length < width:
buf.append(chunks.pop())
- size += l
+ size += length
else:
if not buf:
# handle long chunks by putting them on a
diff --git a/babel/plural.py b/babel/plural.py
index fe1ee25..26073ff 100644
--- a/babel/plural.py
+++ b/babel/plural.py
@@ -521,7 +521,7 @@ class _Parser:
def _binary_compiler(tmpl):
"""Compiler factory for the `_Compiler`."""
- return lambda self, l, r: tmpl % (self.compile(l), self.compile(r))
+ return lambda self, left, right: tmpl % (self.compile(left), self.compile(right))
def _unary_compiler(tmpl):