Skip to content

Commit d040162

Browse files
committed
Use unambiguous variable name
1 parent d142cb3 commit d040162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numcodecs/categorize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, labels, dtype, astype='u1'):
4343
if self.dtype.kind not in 'UO':
4444
raise TypeError("only unicode ('U') and object ('O') dtypes are "
4545
"supported")
46-
self.labels = [ensure_text(l) for l in labels]
46+
self.labels = [ensure_text(label) for label in labels]
4747
self.astype = np.dtype(astype)
4848
if self.astype == object:
4949
raise TypeError('encoding as object array not supported')

0 commit comments

Comments
 (0)