8000 MNT: move comment about LICENSE_PAINT to write_png function again · matplotlib/matplotlib@968b467 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 968b467

Browse files
committed
MNT: move comment about LICENSE_PAINT to write_png function again
This was moved to the top of the file in ba40160 but I think it still only applies to this function.
1 parent 9c674e7 commit 968b467

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/_png.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
/* -*- mode: c++; c-basic-offset: 4 -*- */
22

3-
// this code is heavily adapted from the paint license, which is in
4-
// the file LICENSE_PAINT (BSD compatible) included in this
5-
// distribution.
6-
73
/* For linux, png.h must be imported before Python.h because
84
png.h needs to be the one to define setjmp.
95
Undefining _POSIX_C_SOURCE and _XOPEN_SOURCE stops a couple
@@ -139,6 +135,9 @@ const char *Py_write_png__doc__ =
139135
" Byte string containing the PNG content if None was passed in for\n"
140136
" file, otherwise None is returned.\n";
141137

138+
// this code is heavily adapted from the paint license, which is in
139+
// the file LICENSE_PAINT (BSD compatible) included in this
140+
// distribution.
142141
static PyObject *Py_write_png(PyObject *self, PyObject *args, PyObject *kwds)
143142
{
144143
numpy::array_view<unsigned char, 3> buffer;

0 commit comments

Comments
 (0)
0