diff --git a/khmer/_khmer.cc b/khmer/_khmer.cc index 33fa10a2b2..2acec0ea02 100644 --- a/khmer/_khmer.cc +++ b/khmer/_khmer.cc @@ -1624,7 +1624,7 @@ hashtable_consume_fasta_with_reads_parser(khmer_KHashtable_Object * me, static PyObject * -hashtable_consume(khmer_KHashtable_Object * me, PyObject * args) +hashtable_consume_string(khmer_KHashtable_Object * me, PyObject * args) { Hashtable * hashtable = me->hashtable; @@ -2223,8 +2223,8 @@ static PyMethodDef khmer_hashtable_methods[] = { "Increment the count of this k-mer. (Synonym for 'count'.)" }, { - "consume", - (PyCFunction)hashtable_consume, METH_VARARGS, + "consume_string", + (PyCFunction)hashtable_consume_string, METH_VARARGS, "Increment the counts of all of the k-mers in the string." }, { @@ -4460,7 +4460,7 @@ junctioncountassembler_assemble(khmer_KJunctionCountAssembler_Object * me, static PyObject * -junctioncountassembler_consume(khmer_KJunctionCountAssembler_Object * me, +junctioncountassembler_consume_string(khmer_KJunctionCountAssembler_Object * me, PyObject * args) { JunctionCountAssembler * assembler = me->assembler; @@ -4476,7 +4476,7 @@ junctioncountassembler_consume(khmer_KJunctionCountAssembler_Object * me, return NULL; } - uint16_t n_junctions = assembler->consume(long_str); + uint16_t n_junctions = assembler->consume_string(long_str); return PyLong_FromLong((HashIntoType) n_junctions); } @@ -4489,8 +4489,8 @@ static PyMethodDef khmer_junctioncountassembler_methods[] = { "Assemble paths, using recorded junctions to jump branches." }, { - "consume", - (PyCFunction)junctioncountassembler_consume, METH_VARARGS, + "consume_string", + (PyCFunction)junctioncountassembler_consume_string, METH_VARARGS, "Consume a string and count its branch junctions." }, {NULL, NULL, 0, NULL} /* sentinel */