Skip to content

Commit

Permalink
PyPNG should always be available, don't guard the import
Browse files Browse the repository at this point in the history
  • Loading branch information
encukou committed Oct 20, 2013
1 parent d91bf7d commit 64dc0cc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tmxlib/image.py
Expand Up @@ -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]

Expand Down

0 comments on commit 64dc0cc

Please sign in to comment.