Correct some pydocs.
Showing
10 changed files
with
38 additions
and
38 deletions
... | @@ -284,14 +284,14 @@ api_address_to_string (PyObject *self, PyObject *args) | ... | @@ -284,14 +284,14 @@ api_address_to_string (PyObject *self, PyObject *args) |
284 | 284 | ||
285 | static PyMethodDef methods[] = { | 285 | static PyMethodDef methods[] = { |
286 | { "create", (PyCFunction) api_address_create, METH_VARARGS, | 286 | { "create", (PyCFunction) api_address_create, METH_VARARGS, |
287 | "Allocate and initialize ADDR by parsing the RFC822 " | 287 | "Allocate and initialize 'addr' by parsing the RFC822 " |
288 | "address-list STRING." }, | 288 | "address-list 'string'." }, |
289 | 289 | ||
290 | { "createv", (PyCFunction) api_address_createv, METH_VARARGS, | 290 | { "createv", (PyCFunction) api_address_createv, METH_VARARGS, |
291 | "Allocate and initialize ADDR by parsing the RFC822 address-list." }, | 291 | "Allocate and initialize 'addr' by parsing the RFC822 address-list." }, |
292 | 292 | ||
293 | { "destroy", (PyCFunction) api_address_destroy, METH_VARARGS, | 293 | { "destroy", (PyCFunction) api_address_destroy, METH_VARARGS, |
294 | "Destroy ADDR." }, | 294 | "Destroy 'addr'." }, |
295 | 295 | ||
296 | { "is_group", (PyCFunction) api_address_is_group, METH_VARARGS, | 296 | { "is_group", (PyCFunction) api_address_is_group, METH_VARARGS, |
297 | "Return True if address is just the name of a group, False otherwise." }, | 297 | "Return True if address is just the name of a group, False otherwise." }, | ... | ... |
... | @@ -243,7 +243,7 @@ static PyMethodDef methods[] = { | ... | @@ -243,7 +243,7 @@ static PyMethodDef methods[] = { |
243 | "" }, | 243 | "" }, |
244 | 244 | ||
245 | { "is_modified", (PyCFunction) api_attribute_is_modified, METH_VARARGS, | 245 | { "is_modified", (PyCFunction) api_attribute_is_modified, METH_VARARGS, |
246 | "Return TRUE or FALSE whether attribute has been modified." }, | 246 | "Return True or False whether attribute has been modified." }, |
247 | 247 | ||
248 | { "clear_modified", (PyCFunction) api_attribute_clear_modified, | 248 | { "clear_modified", (PyCFunction) api_attribute_clear_modified, |
249 | METH_VARARGS, "" }, | 249 | METH_VARARGS, "" }, | ... | ... |
... | @@ -125,10 +125,10 @@ api_body_get_stream (PyObject *self, PyObject *args) | ... | @@ -125,10 +125,10 @@ api_body_get_stream (PyObject *self, PyObject *args) |
125 | 125 | ||
126 | static PyMethodDef methods[] = { | 126 | static PyMethodDef methods[] = { |
127 | { "size", (PyCFunction) api_body_size, METH_VARARGS, | 127 | { "size", (PyCFunction) api_body_size, METH_VARARGS, |
128 | "Retrieve BODY size." }, | 128 | "Retrieve 'body' size." }, |
129 | 129 | ||
130 | { "lines", (PyCFunction) api_body_lines, METH_VARARGS, | 130 | { "lines", (PyCFunction) api_body_lines, METH_VARARGS, |
131 | "Retrieve BODY number of lines." }, | 131 | "Retrieve 'body' number of lines." }, |
132 | 132 | ||
133 | { "get_stream", (PyCFunction) api_body_get_stream, METH_VARARGS, | 133 | { "get_stream", (PyCFunction) api_body_get_stream, METH_VARARGS, |
134 | "" }, | 134 | "" }, | ... | ... |
... | @@ -37,7 +37,7 @@ api_strerror (PyObject *self, PyObject *args) | ... | @@ -37,7 +37,7 @@ api_strerror (PyObject *self, PyObject *args) |
37 | 37 | ||
38 | static PyMethodDef methods[] = { | 38 | static PyMethodDef methods[] = { |
39 | { "strerror", (PyCFunction) api_strerror, METH_VARARGS, | 39 | { "strerror", (PyCFunction) api_strerror, METH_VARARGS, |
40 | "Return the error message corresponding to ERR, " | 40 | "Return the error message corresponding to 'err', " |
41 | "which must be an integer value." }, | 41 | "which must be an integer value." }, |
42 | 42 | ||
43 | { NULL, NULL, 0, NULL } | 43 | { NULL, NULL, 0, NULL } | ... | ... |
... | @@ -198,10 +198,10 @@ api_header_get_field_value (PyObject *self, PyObject *args) | ... | @@ -198,10 +198,10 @@ api_header_get_field_value (PyObject *self, PyObject *args) |
198 | 198 | ||
199 | static PyMethodDef methods[] = { | 199 | static PyMethodDef methods[] = { |
200 | { "size", (PyCFunction) api_header_size, METH_VARARGS, | 200 | { "size", (PyCFunction) api_header_size, METH_VARARGS, |
201 | "Retrieve HEADER size." }, | 201 | "Retrieve 'header' size." }, |
202 | 202 | ||
203 | { "lines", (PyCFunction) api_header_lines, METH_VARARGS, | 203 | { "lines", (PyCFunction) api_header_lines, METH_VARARGS, |
204 | "Retrieve HEADER number of lines." }, | 204 | "Retrieve 'header' number of lines." }, |
205 | 205 | ||
206 | { "get_value", (PyCFunction) api_header_get_value, METH_VARARGS, | 206 | { "get_value", (PyCFunction) api_header_get_value, METH_VARARGS, |
207 | "Retrieve header field value." }, | 207 | "Retrieve header field value." }, |
... | @@ -216,10 +216,10 @@ static PyMethodDef methods[] = { | ... | @@ -216,10 +216,10 @@ static PyMethodDef methods[] = { |
216 | "Retrieve the number of header fields." }, | 216 | "Retrieve the number of header fields." }, |
217 | 217 | ||
218 | { "get_field_name", (PyCFunction) api_header_get_field_name, METH_VARARGS, | 218 | { "get_field_name", (PyCFunction) api_header_get_field_name, METH_VARARGS, |
219 | "Retrieve header field name by field index IDX." }, | 219 | "Retrieve header field name by field index 'idx'." }, |
220 | 220 | ||
221 | { "get_field_value", (PyCFunction) api_header_get_field_value, METH_VARARGS, | 221 | { "get_field_value", (PyCFunction) api_header_get_field_value, METH_VARARGS, |
222 | "Retrieve header field value by field index IDX." }, | 222 | "Retrieve header field value by field index 'idx'." }, |
223 | 223 | ||
224 | { NULL, NULL, 0, NULL } | 224 | { NULL, NULL, 0, NULL } |
225 | }; | 225 | }; | ... | ... |
... | @@ -393,8 +393,8 @@ api_mailbox_get_url (PyObject *self, PyObject *args) | ... | @@ -393,8 +393,8 @@ api_mailbox_get_url (PyObject *self, PyObject *args) |
393 | 393 | ||
394 | static PyMethodDef methods[] = { | 394 | static PyMethodDef methods[] = { |
395 | { "create", (PyCFunction) api_mailbox_create, METH_VARARGS, | 395 | { "create", (PyCFunction) api_mailbox_create, METH_VARARGS, |
396 | "Allocate and initialize MBOX. The concrete mailbox type " | 396 | "Allocate and initialize 'mbox'. The concrete mailbox type " |
397 | "instantiate is based on the scheme of the url NAME." }, | 397 | "instantiate is based on the scheme of the url 'name'." }, |
398 | 398 | ||
399 | { "create_default", (PyCFunction) api_mailbox_create_default, METH_VARARGS, | 399 | { "create_default", (PyCFunction) api_mailbox_create_default, METH_VARARGS, |
400 | "Create a mailbox with mu_mailbox_create() based on the " | 400 | "Create a mailbox with mu_mailbox_create() based on the " |
... | @@ -402,35 +402,35 @@ static PyMethodDef methods[] = { | ... | @@ -402,35 +402,35 @@ static PyMethodDef methods[] = { |
402 | "__PATH_MAILDIR_/USER or LOGNAME if USER is null." }, | 402 | "__PATH_MAILDIR_/USER or LOGNAME if USER is null." }, |
403 | 403 | ||
404 | { "destroy", (PyCFunction) api_mailbox_destroy, METH_VARARGS, | 404 | { "destroy", (PyCFunction) api_mailbox_destroy, METH_VARARGS, |
405 | "Destroy and release resources held by MBOX." }, | 405 | "Destroy and release resources held by 'mbox'." }, |
406 | 406 | ||
407 | { "open", (PyCFunction) api_mailbox_open, METH_VARARGS, | 407 | { "open", (PyCFunction) api_mailbox_open, METH_VARARGS, |
408 | "A connection is open, if no stream was provided, a stream is " | 408 | "A connection is open, if no stream was provided, a stream is " |
409 | "created based on the MBOX type. The FLAG can be OR'ed." }, | 409 | "created based on the 'mbox' type. The 'flag' can be OR'ed." }, |
410 | 410 | ||
411 | { "close", (PyCFunction) api_mailbox_close, METH_VARARGS, | 411 | { "close", (PyCFunction) api_mailbox_close, METH_VARARGS, |
412 | "The stream attached to MBOX is closed." }, | 412 | "The stream attached to 'mbox' is closed." }, |
413 | 413 | ||
414 | { "flush", (PyCFunction) api_mailbox_flush, METH_VARARGS, | 414 | { "flush", (PyCFunction) api_mailbox_flush, METH_VARARGS, |
415 | "" }, | 415 | "" }, |
416 | 416 | ||
417 | { "messages_count", (PyCFunction) api_mailbox_messages_count, METH_VARARGS, | 417 | { "messages_count", (PyCFunction) api_mailbox_messages_count, METH_VARARGS, |
418 | "Give the number of messages in MBOX." }, | 418 | "Give the number of messages in 'mbox'." }, |
419 | 419 | ||
420 | { "messages_recent", (PyCFunction) api_mailbox_messages_recent, METH_VARARGS, | 420 | { "messages_recent", (PyCFunction) api_mailbox_messages_recent, METH_VARARGS, |
421 | "Give the number of recent messages in MBOX." }, | 421 | "Give the number of recent messages in 'mbox'." }, |
422 | 422 | ||
423 | { "message_unseen", (PyCFunction) api_mailbox_message_unseen, METH_VARARGS, | 423 | { "message_unseen", (PyCFunction) api_mailbox_message_unseen, METH_VARARGS, |
424 | "Give the number of first unseen message in MBOX." }, | 424 | "Give the number of first unseen message in MBOX." }, |
425 | 425 | ||
426 | { "get_message", (PyCFunction) api_mailbox_get_message, METH_VARARGS, | 426 | { "get_message", (PyCFunction) api_mailbox_get_message, METH_VARARGS, |
427 | "Retrieve message number MSGNO, MESSAGE is allocated and initialized." }, | 427 | "Retrieve message number 'msgno', 'message' is allocated and initialized." }, |
428 | 428 | ||
429 | { "append_message", (PyCFunction) api_mailbox_append_message, METH_VARARGS, | 429 | { "append_message", (PyCFunction) api_mailbox_append_message, METH_VARARGS, |
430 | "Append MESSAGE to the mailbox MBOX." }, | 430 | "Append 'message' to the mailbox 'mbox'." }, |
431 | 431 | ||
432 | { "expunge", (PyCFunction) api_mailbox_expunge, METH_VARARGS, | 432 | { "expunge", (PyCFunction) api_mailbox_expunge, METH_VARARGS, |
433 | "Expunge deleted messages from the mailbox MBOX." }, | 433 | "Expunge deleted messages from the mailbox 'mbox'." }, |
434 | 434 | ||
435 | { "sync", (PyCFunction) api_mailbox_sync, METH_VARARGS, | 435 | { "sync", (PyCFunction) api_mailbox_sync, METH_VARARGS, |
436 | "" }, | 436 | "" }, | ... | ... |
... | @@ -262,7 +262,7 @@ api_mailcap_entry_get_viewcommand (PyObject *self, PyObject *args) | ... | @@ -262,7 +262,7 @@ api_mailcap_entry_get_viewcommand (PyObject *self, PyObject *args) |
262 | 262 | ||
263 | static PyMethodDef methods[] = { | 263 | static PyMethodDef methods[] = { |
264 | { "create", (PyCFunction) api_mailcap_create, METH_VARARGS, | 264 | { "create", (PyCFunction) api_mailcap_create, METH_VARARGS, |
265 | "Allocate, parse the buffer from the STREAM and initializes MAILCAP." }, | 265 | "Allocate, parse the buffer from the 'stream' and initializes 'mailcap'." }, |
266 | 266 | ||
267 | { "destroy", (PyCFunction) api_mailcap_destroy, METH_VARARGS, | 267 | { "destroy", (PyCFunction) api_mailcap_destroy, METH_VARARGS, |
268 | "Release any resources from the mailcap object." }, | 268 | "Release any resources from the mailcap object." }, |
... | @@ -271,7 +271,7 @@ static PyMethodDef methods[] = { | ... | @@ -271,7 +271,7 @@ static PyMethodDef methods[] = { |
271 | "Return the number of entries found in the mailcap." }, | 271 | "Return the number of entries found in the mailcap." }, |
272 | 272 | ||
273 | { "get_entry", (PyCFunction) api_mailcap_get_entry, METH_VARARGS, | 273 | { "get_entry", (PyCFunction) api_mailcap_get_entry, METH_VARARGS, |
274 | "Return in ENTRY the mailcap entry of NO." }, | 274 | "Return in 'entry' the mailcap entry of 'no'." }, |
275 | 275 | ||
276 | { "entry_fields_count", (PyCFunction) api_mailcap_entry_fields_count, | 276 | { "entry_fields_count", (PyCFunction) api_mailcap_entry_fields_count, |
277 | METH_VARARGS, | 277 | METH_VARARGS, | ... | ... |
... | @@ -192,7 +192,7 @@ static PyMethodDef methods[] = { | ... | @@ -192,7 +192,7 @@ static PyMethodDef methods[] = { |
192 | "Create mailer." }, | 192 | "Create mailer." }, |
193 | 193 | ||
194 | { "destroy", (PyCFunction) api_mailer_destroy, METH_VARARGS, | 194 | { "destroy", (PyCFunction) api_mailer_destroy, METH_VARARGS, |
195 | "The resources allocate for MSG are freed." }, | 195 | "The resources allocate for 'msg' are freed." }, |
196 | 196 | ||
197 | { "open", (PyCFunction) api_mailer_open, METH_VARARGS, | 197 | { "open", (PyCFunction) api_mailer_open, METH_VARARGS, |
198 | "" }, | 198 | "" }, | ... | ... |
... | @@ -354,28 +354,28 @@ static PyMethodDef methods[] = { | ... | @@ -354,28 +354,28 @@ static PyMethodDef methods[] = { |
354 | "Create message." }, | 354 | "Create message." }, |
355 | 355 | ||
356 | { "destroy", (PyCFunction) api_message_destroy, METH_VARARGS, | 356 | { "destroy", (PyCFunction) api_message_destroy, METH_VARARGS, |
357 | "The resources allocate for MSG are freed." }, | 357 | "The resources allocate for 'msg' are freed." }, |
358 | 358 | ||
359 | { "is_multipart", (PyCFunction) api_message_is_multipart, METH_VARARGS, | 359 | { "is_multipart", (PyCFunction) api_message_is_multipart, METH_VARARGS, |
360 | "" }, | 360 | "" }, |
361 | 361 | ||
362 | { "size", (PyCFunction) api_message_size, METH_VARARGS, | 362 | { "size", (PyCFunction) api_message_size, METH_VARARGS, |
363 | "Retrieve MSG size." }, | 363 | "Retrieve 'msg' size." }, |
364 | 364 | ||
365 | { "lines", (PyCFunction) api_message_lines, METH_VARARGS, | 365 | { "lines", (PyCFunction) api_message_lines, METH_VARARGS, |
366 | "Retrieve MSG number of lines." }, | 366 | "Retrieve 'msg' number of lines." }, |
367 | 367 | ||
368 | { "get_envelope", (PyCFunction) api_message_get_envelope, METH_VARARGS, | 368 | { "get_envelope", (PyCFunction) api_message_get_envelope, METH_VARARGS, |
369 | "Retrieve MSG envelope." }, | 369 | "Retrieve 'msg' envelope." }, |
370 | 370 | ||
371 | { "get_header", (PyCFunction) api_message_get_header, METH_VARARGS, | 371 | { "get_header", (PyCFunction) api_message_get_header, METH_VARARGS, |
372 | "Retrieve MSG header." }, | 372 | "Retrieve 'msg' header." }, |
373 | 373 | ||
374 | { "get_body", (PyCFunction) api_message_get_body, METH_VARARGS, | 374 | { "get_body", (PyCFunction) api_message_get_body, METH_VARARGS, |
375 | "Retrieve MSG body." }, | 375 | "Retrieve 'msg' body." }, |
376 | 376 | ||
377 | { "get_attribute", (PyCFunction) api_message_get_attribute, METH_VARARGS, | 377 | { "get_attribute", (PyCFunction) api_message_get_attribute, METH_VARARGS, |
378 | "Retrieve MSG attribute." }, | 378 | "Retrieve 'msg' attribute." }, |
379 | 379 | ||
380 | { "get_num_parts", (PyCFunction) api_message_get_num_parts, METH_VARARGS, | 380 | { "get_num_parts", (PyCFunction) api_message_get_num_parts, METH_VARARGS, |
381 | "" }, | 381 | "" }, | ... | ... |
... | @@ -435,24 +435,24 @@ api_sieve_set_logger (PyObject *self, PyObject *args) | ... | @@ -435,24 +435,24 @@ api_sieve_set_logger (PyObject *self, PyObject *args) |
435 | 435 | ||
436 | static PyMethodDef methods[] = { | 436 | static PyMethodDef methods[] = { |
437 | { "machine_init", (PyCFunction) api_sieve_machine_init, METH_VARARGS, | 437 | { "machine_init", (PyCFunction) api_sieve_machine_init, METH_VARARGS, |
438 | "Create and initialize new Sieve MACHine." }, | 438 | "Create and initialize new Sieve 'machine'." }, |
439 | 439 | ||
440 | { "machine_destroy", (PyCFunction) api_sieve_machine_destroy, METH_VARARGS, | 440 | { "machine_destroy", (PyCFunction) api_sieve_machine_destroy, METH_VARARGS, |
441 | "Destroy Sieve MACHine." }, | 441 | "Destroy Sieve 'machine'." }, |
442 | 442 | ||
443 | { "compile", (PyCFunction) api_sieve_compile, METH_VARARGS, | 443 | { "compile", (PyCFunction) api_sieve_compile, METH_VARARGS, |
444 | "Compile the sieve script from the file NAME." }, | 444 | "Compile the sieve script from the file 'name'." }, |
445 | 445 | ||
446 | { "disass", (PyCFunction) api_sieve_disass, METH_VARARGS, | 446 | { "disass", (PyCFunction) api_sieve_disass, METH_VARARGS, |
447 | "Dump the disassembled code of the sieve machine MACH." }, | 447 | "Dump the disassembled code of the sieve machine 'mach'." }, |
448 | 448 | ||
449 | { "mailbox", (PyCFunction) api_sieve_mailbox, METH_VARARGS, | 449 | { "mailbox", (PyCFunction) api_sieve_mailbox, METH_VARARGS, |
450 | "Execute the code from the given instance of sieve machine " | 450 | "Execute the code from the given instance of sieve machine " |
451 | "MACH over each message in the mailbox MBOX." }, | 451 | "'mach' over each message in the mailbox 'mbox'." }, |
452 | 452 | ||
453 | { "message", (PyCFunction) api_sieve_message, METH_VARARGS, | 453 | { "message", (PyCFunction) api_sieve_message, METH_VARARGS, |
454 | "Execute the code from the given instance of sieve machine " | 454 | "Execute the code from the given instance of sieve machine " |
455 | "MACH over the MESSAGE. " }, | 455 | "'mach' over the 'message'. " }, |
456 | 456 | ||
457 | { "set_debug", (PyCFunction) api_sieve_set_debug, METH_VARARGS, | 457 | { "set_debug", (PyCFunction) api_sieve_set_debug, METH_VARARGS, |
458 | "" }, | 458 | "" }, | ... | ... |
-
Please register or sign in to post a comment