From 3baaa2d547f06428002d91d2572784513987f505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Wr=C3=B3bel?= Date: Sat, 25 Nov 2023 16:08:11 +0100 Subject: [PATCH] fix TokenValid in optimization --- ens_normalize/normalization.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ens_normalize/normalization.py b/ens_normalize/normalization.py index d4ccd3d..2af1b60 100644 --- a/ens_normalize/normalization.py +++ b/ens_normalize/normalization.py @@ -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,