summaryrefslogtreecommitdiff
path: root/Modules/_lzmamodule.c
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-05-06 23:01:51 +0200
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-05-06 23:01:51 +0200
commit4aa01827d16a587392a2307fb7dcf3f2da99d42f (patch)
tree439d5271a3af595c2e0605d168930bcf8dbbb697 /Modules/_lzmamodule.c
parent3b60e6ff6a259d6a70e7efdc451fec3e245a151c (diff)
downloadcpython-4aa01827d16a587392a2307fb7dcf3f2da99d42f.tar.gz
Rename lzma.check_is_supported() to is_check_supported() to avoid grammatical confusion.
Diffstat (limited to 'Modules/_lzmamodule.c')
-rw-r--r--Modules/_lzmamodule.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/_lzmamodule.c b/Modules/_lzmamodule.c
index 2f246b80b2..92dd06d5c0 100644
--- a/Modules/_lzmamodule.c
+++ b/Modules/_lzmamodule.c
@@ -1075,19 +1075,19 @@ static PyTypeObject Decompressor_type = {
/* Module-level functions. */
-PyDoc_STRVAR(check_is_supported_doc,
-"check_is_supported(check_id) -> bool\n"
+PyDoc_STRVAR(is_check_supported_doc,
+"is_check_supported(check_id) -> bool\n"
"\n"
"Test whether the given integrity check is supported.\n"
"\n"
"Always returns True for CHECK_NONE and CHECK_CRC32.\n");
static PyObject *
-check_is_supported(PyObject *self, PyObject *args)
+is_check_supported(PyObject *self, PyObject *args)
{
int check_id;
- if (!PyArg_ParseTuple(args, "i:check_is_supported", &check_id))
+ if (!PyArg_ParseTuple(args, "i:is_check_supported", &check_id))
return NULL;
return PyBool_FromLong(lzma_check_is_supported(check_id));
@@ -1182,8 +1182,8 @@ decode_filter_properties(PyObject *self, PyObject *args)
/* Module initialization. */
static PyMethodDef module_methods[] = {
- {"check_is_supported", (PyCFunction)check_is_supported,
- METH_VARARGS, check_is_supported_doc},
+ {"is_check_supported", (PyCFunction)is_check_supported,
+ METH_VARARGS, is_check_supported_doc},
{"encode_filter_properties", (PyCFunction)encode_filter_properties,
METH_VARARGS, encode_filter_properties_doc},
{"decode_filter_properties", (PyCFunction)decode_filter_properties,