From 64dc0cc0e5f684a2454d5050c70a0030d3ea32e2 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Sun, 20 Oct 2013 22:52:11 +0200 Subject: [PATCH] PyPNG should always be available, don't guard the import --- tmxlib/image.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tmxlib/image.py b/tmxlib/image.py index b33e4f8..067bfc2 100644 --- a/tmxlib/image.py +++ b/tmxlib/image.py @@ -18,11 +18,8 @@ except ImportError: # pragma: no cover pass -try: - from tmxlib import image_png - image_classes.append(image_png.PngImage) -except ImportError: # pragma: no cover - pass +from tmxlib import image_png +image_classes.append(image_png.PngImage) preferred_image_class = image_classes[0]