[poppler] regtest/backends

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sun Oct 26 04:13:02 PDT 2014


 regtest/backends/__init__.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3d840231bc6f0714da361493ef32913af2eb78d7
Author: Carlos Garcia Campos <cgarcia at igalia.com>
Date:   Sun Oct 26 12:09:28 2014 +0100

    regtest: Fix png diff generation with python-pil pillow fork
    
    Use from PIL import Image instead of just import Image, since pillow
    only doesn't support import Image without using PIL.Image.

diff --git a/regtest/backends/__init__.py b/regtest/backends/__init__.py
index 36391d1..89b5755 100644
--- a/regtest/backends/__init__.py
+++ b/regtest/backends/__init__.py
@@ -251,7 +251,7 @@ class Backend:
 
     def _diff_png(self, ref_path, result_path):
         try:
-            import Image, ImageChops
+            from PIL import Image, ImageChops
         except ImportError:
             raise NotImplementedError
 


More information about the poppler mailing list