Skip to content

Commit

Permalink
Consistently use if a not in b: instead of if not a in b:
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-fabian committed May 29, 2024
1 parent 2e5a1f4 commit 2e47773
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/generate-chinese-variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 92,9 @@ def read_unihan_variants(unihan_variants_file) -> None:
logging.debug(
'char=%s category=%d line=%s',
char, category, line)
if not char in VARIANTS_TABLE_ORIG:
if char not in VARIANTS_TABLE_ORIG:
VARIANTS_TABLE_ORIG[char] = category
if (not char
in VARIANTS_TABLE_ORIG_UNIHAN_VARIANTS_ENTRY_USED):
if (char not in VARIANTS_TABLE_ORIG_UNIHAN_VARIANTS_ENTRY_USED):
VARIANTS_TABLE_ORIG_UNIHAN_VARIANTS_ENTRY_USED[
char] = line

Expand Down

0 comments on commit 2e47773

Please sign in to comment.