Skip to content

Commit

Permalink
devel/py-simpleparse: Fix build with Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Apr 18, 2021
1 parent 3945c3e commit d53cfa2
Showing 1 changed file with 22 additions and 0 deletions.
@@ -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;

0 comments on commit d53cfa2

Please sign in to comment.