Menu

#50 Update PIL imports for compatibility with Pillow (PIL-2)

Unstable (example)
open
nobody
None
5
2013-06-16
2013-06-16
No

Pillow (PIL-2) is a drop-in replacement for the old Python Imaging Library. Some distros (e.g. Gentoo) are trying to switch to Pillow from PIL-1 because unlike PIL-1, Pillow is compatible with both python2 and python3. See https://github.com/python-imaging/Pillow for more details.

Pillow is mostly backwards-compatible with PIL-1; however, import statements of the form "import Imaging" have to be changed to "from PIL import Imaging" in order to be worth both with PIL-1 and Pillow. The attached patch does so.

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB