@ -233,11 +233,10 @@ def convert(images, dpi=None, pagesize=(None, None, None), title=None,
debug_out("Reading %s"%imfilename, verbose)
try:
rawdata = imfilename.read()
im = cStringIO(rawdata)
except:
except AttributeError:
with open(imfilename, "rb") as im:
rawdata = im.read()
imgdata = Image.open(im)
except IOError as e: