Skip to content

Commit c5c4b5e

Browse files
committed
pronouns: fix that KNOWN_SETS is expected to be a dict
1 parent 2f05a7d commit c5c4b5e

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

sopel/modules/pronouns.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
# https://github.com/witch-house/pronoun.is/pull/96 gets merged, using that
1616
# would be a lot easier.
1717
# If ambiguous, the earlier one will be used.
18-
KNOWN_SETS = [
19-
"ze/hir/hir/hirs/hirself",
20-
"ze/zir/zir/zirs/zirself",
21-
"they/them/their/theirs/themselves",
22-
"they/them/their/theirs/themself",
23-
"she/her/her/hers/herself",
24-
"he/him/his/his/himself",
25-
"xey/xem/xyr/xyrs/xemself",
26-
"sie/hir/hir/hirs/hirself",
27-
"it/it/its/its/itself",
28-
"ey/em/eir/eirs/eirself",
29-
]
18+
KNOWN_SETS = {
19+
"ze/hir": "ze/hir/hir/hirs/hirself",
20+
"ze/zir": "ze/zir/zir/zirs/zirself",
21+
"they/them/their/theirs/themselves": "they/them/their/theirs/themselves",
22+
"they/them/their/theirs/themself": "they/them/their/theirs/themself",
23+
"she/her": "she/her/her/hers/herself",
24+
"he/him": "he/him/his/his/himself",
25+
"xey/xem": "xey/xem/xyr/xyrs/xemself",
26+
"sie/hir": "sie/hir/hir/hirs/hirself",
27+
"it/it": "it/it/its/its/itself",
28+
"ey/em": "ey/em/eir/eirs/eirself",
29+
}
3030

3131

3232
@plugin.command('pronouns')
@@ -82,7 +82,7 @@ def set_pronouns(bot, trigger):
8282
requested_pronoun_split = pronouns.split("/")
8383
if len(requested_pronoun_split) < 5:
8484
matching = []
85-
for known_pronoun_set in KNOWN_SETS:
85+
for known_pronoun_set in KNOWN_SETS.values():
8686
known_pronoun_split = known_pronoun_set.split("/")
8787
if known_pronoun_set.startswith(pronouns + "/") or (
8888
len(requested_pronoun_split) == 3

0 commit comments

Comments
 (0)