Skip to content

Commit

Permalink
fix TokenValid in optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
djstrong committed Nov 25, 2023
1 parent 0f9d7f2 commit 3baaa2d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ens_normalize/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,12 +905,7 @@ def ens_process(input: str,
- `normalizations`: list of `NormalizableSequence` objects or `None` if `do_normalizations` is `False`
"""
if SIMPLE_NAME_REGEX.match(input) is not None:
tokens = []
for c in input:
cp = ord(c)
tokens.append(TokenValid(
cps=[cp],
))
tokens = [TokenValid(cps=[ord(c) for c in input])]

return ENSProcessResult(
normalized=input,
Expand Down

0 comments on commit 3baaa2d

Please sign in to comment.