Skip to content

Commit 72e8c8e

Browse files
AbsurdlySuspiciousdwolfhub
authored andcommitted
add add_frequency_lists fn back
1 parent 566fff1 commit 72e8c8e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

zxcvbn/matching.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ def wrapper(*args, **kwargs):
4040
return func(*args, **kwargs)
4141
return wrapper
4242

43+
44+
@ensure_ranked_dictionaries
45+
def add_frequency_lists(frequency_lists_, *, _ranked_dictionaries):
46+
for name, lst in frequency_lists_.items():
47+
_ranked_dictionaries[name] = build_ranked_dict(lst)
48+
49+
4350
GRAPHS = {
4451
'qwerty': adjacency_graphs.ADJACENCY_GRAPHS['qwerty'],
4552
'dvorak': adjacency_graphs.ADJACENCY_GRAPHS['dvorak'],

0 commit comments

Comments
 (0)