Skip to content

Commit

Permalink
Use unambiguous variable name (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed May 21, 2020
1 parent d142cb3 commit 5d02aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numcodecs/categorize.py
Expand Up @@ -43,7 +43,7 @@ def __init__(self, labels, dtype, astype='u1'):
if self.dtype.kind not in 'UO':
raise TypeError("only unicode ('U') and object ('O') dtypes are "
"supported")
self.labels = [ensure_text(l) for l in labels]
self.labels = [ensure_text(label) for label in labels]
self.astype = np.dtype(astype)
if self.astype == object:
raise TypeError('encoding as object array not supported')
Expand Down

0 comments on commit 5d02aa6

Please sign in to comment.