Skip to content

Commit 4ed183d

Browse files
committed
Refactor membership test
1 parent 762216b commit 4ed183d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idna/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def uts46_remap(domain: str, std3_rules: bool = True, transitional: bool = False
381381
status = uts46row[1]
382382
replacement: Optional[str] = None
383383
if std3_rules and code_point <= 0x7F:
384-
if not code_point in _ldh:
384+
if code_point not in _ldh:
385385
raise InvalidCodepoint(
386386
"Codepoint {} at position {} does not follow STD3 rules".format(_unot(code_point), pos + 1)
387387
)

0 commit comments

Comments
 (0)