Skip to content

Commit

Permalink
Fix documentation referring to deprecated tostring method
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese authored Sep 9, 2024
1 parent d2d8d7c commit 944ba80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aggdraw.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ const char *draw_frombytes_doc = "Copies data from a string buffer to the drawin
"Parameters\n"
"----------\n"
"data : bytes\n"
" A string containing packed image data, compatible with PIL’s tostring method.\n";
" A string containing packed image data, compatible with PIL’s tobytes method.\n";

static PyObject*
draw_frombytes(DrawObject* self, PyObject* args)
Expand Down Expand Up @@ -2587,7 +2587,7 @@ const char *mod_doc = "Python interface to the Anti-Grain Graphics Drawing libra
" >>> p = aggdraw.Pen(\"black\", 0.5)\n"
" >>> d.line((0, 0, 500, 500), p)\n"
" >>> d.line((0, 500, 500, 0), p)\n"
" >>> s = d.tostring()\n";
" >>> s = d.tobytes()\n";

#ifdef IS_PY3K
static struct PyModuleDef moduledef = {
Expand Down

0 comments on commit 944ba80

Please sign in to comment.