aports/community/py3-simpleparse/python-3.9.patch

46 lines
1.4 KiB
Diff

From dc6dc546f03397fe9a906500cf7560e223b1b8ee Mon Sep 17 00:00:00 2001
From: "Mike C. Fletcher" <mcfletch@vrplumber.com>
Date: Fri, 4 Dec 2020 16:49:38 -0500
Subject: [PATCH] Python 3.9 support, but there are a *ton* of deprecation
warnings
---
appveyor.yml | 25 +++++++++++--------
.../stt/TextTools/mxTextTools/mxTextTools.c | 4 +--
tox.ini | 2 +-
3 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c b/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c
index d623933..be8f6a4 100644
--- a/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c
+++ b/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;
diff --git a/tox.ini b/tox.ini
index 94b3e13..09106a9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist=py27,py36,py37,py38
+envlist=py39,py27,py36,py37,py38
skip_missing_interpreters = True
toxworkdir={toxinidir}/../simpleparse-tox