diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-04-18 05:02:41 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-04-18 05:43:38 +0000 |
commit | d53cfa21c8d0cd1b1b4d459f469a34df869684f6 (patch) | |
tree | 8a0d3ae2b53df35ee4a1067aa3a7c93ea55ffe00 | |
parent | 3945c3ea35f9b8d59a4fd5281b399b78c87c0ad1 (diff) | |
download | ports-d53cfa21c8d0cd1b1b4d459f469a34df869684f6.tar.gz ports-d53cfa21c8d0cd1b1b4d459f469a34df869684f6.zip |
devel/py-simpleparse: Fix build with Python 3.9
Obtained from: https://github.com/mcfletch/simpleparse/commit/dc6dc546f03397fe9a906500cf7560e223b1b8ee
-rw-r--r-- | devel/py-simpleparse/files/patch-simpleparse-stt-TextTools-mxTextTools-mxTextTools.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/py-simpleparse/files/patch-simpleparse-stt-TextTools-mxTextTools-mxTextTools.c b/devel/py-simpleparse/files/patch-simpleparse-stt-TextTools-mxTextTools-mxTextTools.c new file mode 100644 index 000000000000..80f4ffc2b35e --- /dev/null +++ b/devel/py-simpleparse/files/patch-simpleparse-stt-TextTools-mxTextTools-mxTextTools.c @@ -0,0 +1,22 @@ +Obtained from: https://github.com/mcfletch/simpleparse/commit/dc6dc546f03397fe9a906500cf7560e223b1b8ee + +--- simpleparse/stt/TextTools/mxTextTools/mxTextTools.c.orig 2020-02-17 16:02:36 UTC ++++ simpleparse/stt/TextTools/mxTextTools/mxTextTools.c +@@ -2835,7 +2835,7 @@ PyObject *mxTextTools_UnicodeJoin(PyObject *seq, + + o = PySequence_GetItem(seq, i); + +- if PyTuple_Check(o) { ++ if (PyTuple_Check(o)) { + /* Tuple entry: (string,l,r,[...]) */ + register Py_ssize_t l,r; + +@@ -2980,7 +2980,7 @@ PyObject *mxTextTools_Join(PyObject *seq, + + o = PySequence_GetItem(seq, i); + +- if PyTuple_Check(o) { ++ if (PyTuple_Check(o)) { + /* Tuple entry: (string,l,r,[...]) */ + register Py_ssize_t l,r; + |