Skip to content

Commit

Permalink
Merge 6b21af3 into 10e414d
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhrysteve committed Dec 18, 2014
2 parents 10e414d + 6b21af3 commit ac3b5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wand/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,7 @@ def read(self, file=None, filename=None, blob=None, resolution=None):
'integer of the same x/y')
if file is not None:
if (isinstance(file, file_types) and
hasattr(libc, 'fdopen')):
hasattr(libc, 'fdopen') and hasattr(file, 'mode')):
fd = libc.fdopen(file.fileno(), file.mode)
r = library.MagickReadImageFile(self.wand, fd)
elif not callable(getattr(file, 'read', None)):
Expand Down

0 comments on commit ac3b5de

Please sign in to comment.