rename function

This commit is contained in:
Kovid Goyal 2021-09-18 09:39:12 +05:30
parent a941b1af4e
commit 2fc972a173
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ free_job_capsule(PyObject *capsule) {
} }
static PyObject* static PyObject*
begin_signature(PyObject *self UNUSED, PyObject *args) { begin_create_signature(PyObject *self UNUSED, PyObject *args) {
long long file_size = -1; long long file_size = -1;
long sl = 0; long sl = 0;
if (!PyArg_ParseTuple(args, "|Ll", &file_size, &sl)) return NULL; if (!PyArg_ParseTuple(args, "|Ll", &file_size, &sl)) return NULL;
@ -78,7 +78,7 @@ iter_job(PyObject *self UNUSED, PyObject *args) {
} }
static PyMethodDef module_methods[] = { static PyMethodDef module_methods[] = {
{"begin_signature", (PyCFunction)begin_signature, METH_VARARGS, ""}, {"begin_create_signature", (PyCFunction)begin_create_signature, METH_VARARGS, ""},
{"iter_job", (PyCFunction)iter_job, METH_VARARGS, ""}, {"iter_job", (PyCFunction)iter_job, METH_VARARGS, ""},
{NULL, NULL, 0, NULL} /* Sentinel */ {NULL, NULL, 0, NULL} /* Sentinel */
}; };

View File

@ -7,7 +7,7 @@ class JobCapsule:
pass pass
def begin_signature(file_size: int = -1, strong_len: int = 0) -> JobCapsule: def begin_create_signature(file_size: int = -1, strong_len: int = 0) -> JobCapsule:
pass pass