Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 234d32b

Browse files
committed
Merge pull request xhtml2pdf#1 from stefanfoulis/feature/sanity
restoring sanity. one commit at a time.
2 parents 69b5886 + 547dea0 commit 234d32b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sx/pisa3/pisa_reportlab.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,7 @@ def getRGBData(self):
313313
im = self._image
314314
mode = self.mode = im.mode
315315
if mode == 'RGBA':
316-
if Image.VERSION.startswith('1.1.7'):
317-
im.load()
316+
im.load()
318317
self._dataA = PmlImageReader(im.split()[3])
319318
im = im.convert('RGB')
320319
self.mode = 'RGB'

0 commit comments

Comments
 (0)