mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
checkpatch: Fix personal word list storage.
The enchant dictionary synchronizes additions to the source file.
Keep the two word source separate by adding the extra words only
to the current session.
Fixes: 999c7773a6
("checkpatch: add a comment spell-checker")
Signed-off-by: Gaetan Rivet <gaetanr@nvidia.com>
Acked-by: Roi Dayan <roid@nvidia.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Aaron Conole <aconole@redhat.com>
This commit is contained in:
committed by
Aaron Conole
parent
2535d171a3
commit
21c61243fb
@@ -93,7 +93,7 @@ def open_spell_check_dict():
|
||||
global spell_check_dict
|
||||
spell_check_dict = enchant.Dict("en_US")
|
||||
for kw in extra_keywords:
|
||||
spell_check_dict.add(kw)
|
||||
spell_check_dict.add_to_session(kw)
|
||||
|
||||
return True
|
||||
except:
|
||||
|
Reference in New Issue
Block a user