Correctly document that body callback chunks are in bytes (#28)

https://github.com/sdgathman/pymilter/issues/12 says "Obviously, body
and replacebody are bytes" and milter_wrap_body in miltermodule.c
says:

   arglist = Py_BuildValue("(Oy#)", c, bodyp, bodylen);
…

So pymilter should sport the correct documentation.
This commit is contained in:
dkg
2019-02-20 19:38:05 -05:00
committed by Stuart D. Gathman
parent 04e0b15640
commit ec3fa46799
+1 -1
View File
@@ -379,7 +379,7 @@ Sets the Python function invoked for each body chunk. There may\n\
be multiple body chunks passed to the filter. End-of-lines are\n\
represented as received from SMTP (normally Carriage-Return/Line-Feed).\n\
Function takes args (ctx, chunk) -> int\n\
chunk -> String - body data";
chunk -> bytes - body data";
static PyObject *
milter_set_body_callback(PyObject *self, PyObject *args) {