Skip to content

Commit

Permalink
Consistent data structures for updated cython compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjcroucher committed Sep 20, 2024
1 parent bea29b2 commit e811b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PopPUNK/unwords.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def gen_unword(unique=True):

vowels = ["a", "e", "i", "o", "u"]
trouble = ["q", "x", "y"]
consonants = set(string.ascii_lowercase) - set(vowels) - set(trouble)
consonants = list(set(string.ascii_lowercase) - set(vowels) - set(trouble))

vowel = lambda: random.sample(vowels, 1)
consonant = lambda: random.sample(consonants, 1)
Expand Down

0 comments on commit e811b7b

Please sign in to comment.