commit
58e7a9852b
2 changed files with 8 additions and 3 deletions
|
|
@ -7,6 +7,8 @@
|
||||||
* Copyright 2009 Russell Keith-Magee <russell@keith-magee.com>
|
* Copyright 2009 Russell Keith-Magee <russell@keith-magee.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define PY_SSIZE_T_CLEAN
|
||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
@ -33,7 +35,7 @@ PyObject *py_edit_distance(PyObject *self, PyObject *args)
|
||||||
int distance;
|
int distance;
|
||||||
|
|
||||||
char *from, *to;
|
char *from, *to;
|
||||||
int from_len, to_len;
|
Py_ssize_t from_len, to_len;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "s#s#", &from, &from_len, &to, &to_len))
|
if (!PyArg_ParseTuple(args, "s#s#", &from, &from_len, &to, &to_len))
|
||||||
{
|
{
|
||||||
|
|
@ -53,7 +55,7 @@ PyObject *py_spamsum(PyObject *self, PyObject *args)
|
||||||
char *sum;
|
char *sum;
|
||||||
|
|
||||||
unsigned char *in;
|
unsigned char *in;
|
||||||
unsigned int length;
|
Py_ssize_t length;
|
||||||
unsigned int flags, bsize;
|
unsigned int flags, bsize;
|
||||||
|
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
|
|
||||||
5
setup.py
5
setup.py
|
|
@ -10,7 +10,7 @@ with io.open('README.rst', encoding='utf8') as readme:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pyspamsum",
|
name="pyspamsum",
|
||||||
version="1.0.4",
|
version="1.0.5",
|
||||||
description="A Python wrapper for Andrew Tridgell's spamsum algorithm",
|
description="A Python wrapper for Andrew Tridgell's spamsum algorithm",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
author="Russell Keith-Magee",
|
author="Russell Keith-Magee",
|
||||||
|
|
@ -27,6 +27,9 @@ setup(
|
||||||
'Programming Language :: Python :: 3.4',
|
'Programming Language :: Python :: 3.4',
|
||||||
'Programming Language :: Python :: 3.5',
|
'Programming Language :: Python :: 3.5',
|
||||||
'Programming Language :: Python :: 3.6',
|
'Programming Language :: Python :: 3.6',
|
||||||
|
'Programming Language :: Python :: 3.7',
|
||||||
|
'Programming Language :: Python :: 3.8',
|
||||||
|
'Programming Language :: Python :: 3.9',
|
||||||
'Topic :: Text Processing',
|
'Topic :: Text Processing',
|
||||||
'Topic :: Utilities',
|
'Topic :: Utilities',
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue