From: Gaetan Rivet <gaet...@nvidia.com>

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.

Signed-off-by: Gaetan Rivet <gaet...@nvidia.com>
Acked-by: Roi Dayan <r...@nvidia.com>
---
 utilities/checkpatch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
index 6b210fab8385..2dd02ee6420c 100755
--- a/utilities/checkpatch.py
+++ b/utilities/checkpatch.py
@@ -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:
-- 
2.40.1

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to