cubicweb #3924726 Make cubicweb Pillow-friendly [validation pending]

Pillow will replace PIL in jessie. It is a drop-in replacement for PIL, except for two things :

  • Image (and other modules) must be imported from the PIL module
  • "import _imaging" is no longer supported.

The change needed in cubicweb to be compatible with both PIL and Pillow is to import all PIL modules from PIL. e.g. replace "import Image" by "from PIL import Image".

As a side-effect it will make cubicweb way more pip-friendly to depend on Pillow instead of PIL.

prioritynormal
typeenhancement
done in3.19.2
load0.250
load left0.000
closed by#7d0d622c9bc9 Import PIL modules from the PIL namespace to be Pillow-compatible
patchImport PIL modules from the PIL namespace to be Pillow-compatible [applied]