Merge pull request #2834 from victor-rene/fix_2823

zip files not loaded by ImageLoaderPygame
This commit is contained in:
Ryan Pessa 2015-01-09 11:55:32 -06:00
commit ade9e4e62f
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class ImageLoaderPygame(ImageLoaderBase):
im = None
if self._inline:
im = pygame.image.load(filename, 'x.{}'.format(self._ext))
elif isfile(filename):
elif isfile(str(filename)):
with open(filename, 'rb') as fd:
im = pygame.image.load(fd)
elif isinstance(filename, bytes):