From a533b1722ae53f9669b3921f89dbc37dc9ed567f Mon Sep 17 00:00:00 2001 From: Nathan TeBlunthuis Date: Fri, 1 Aug 2025 09:28:41 -0700 Subject: [PATCH] rename numContextLines to num_context_lines for consistency. --- pywikidiff2/pywikidiff2.cpp | 2 +- test/test_pywikidiff2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pywikidiff2/pywikidiff2.cpp b/pywikidiff2/pywikidiff2.cpp index 64ac8d8..f986a86 100644 --- a/pywikidiff2/pywikidiff2.cpp +++ b/pywikidiff2/pywikidiff2.cpp @@ -44,7 +44,7 @@ static int pywikidiff2_init(pywikidiff2Obj *self, PyObject *args, PyObject *kwds) { // here's where we set non-default configuration values - static char *kwlist[] = {"numContextLines", "moved_line_threshold", "change_threshold", "moved_paragraph_detection_cutoff", "max_word_level_diff_complexity", "max_split_size", "initial_split_threshold", "final_split_threshold", "words_cache_capacity", "diff_cache_capacity", "stats_cache_capacity", NULL}; + static char *kwlist[] = {"num_context_lines", "moved_line_threshold", "change_threshold", "moved_paragraph_detection_cutoff", "max_word_level_diff_complexity", "max_split_size", "initial_split_threshold", "final_split_threshold", "words_cache_capacity", "diff_cache_capacity", "stats_cache_capacity", NULL}; if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iffiiiff", kwlist, &self->config.numContextLines, &self->config.movedLineThreshold, diff --git a/test/test_pywikidiff2.py b/test/test_pywikidiff2.py index 5c20b95..c086c26 100644 --- a/test/test_pywikidiff2.py +++ b/test/test_pywikidiff2.py @@ -3,7 +3,7 @@ import json num_context_lines = 100000 obj = pywikidiff2.pywikidiff2() -obj = pywikidiff2.pywikidiff2(numContextLines=num_context_lines, +obj = pywikidiff2.pywikidiff2(num_context_lines=num_context_lines, moved_paragraph_detection_cutoff=2000000) # res = obj.inline_json_diff("help! \n I'm alive", "help! \n dead I am") # print(res)