From 3d840231bc6f0714da361493ef32913af2eb78d7 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 26 Oct 2014 12:09:28 +0100 Subject: 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. --- regtest/backends/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regtest') diff --git a/regtest/backends/__init__.py b/regtest/backends/__init__.py index 36391d10..89b57551 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 -- cgit v1.2.3