Skip to content

Commit

Permalink
stop pretending we support the old PIL library
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21698 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 19, 2019
1 parent cf036a0 commit 63b8685
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/xpra/codecs/pillow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@

import PIL #@UnresolvedImport
from PIL import Image #@UnresolvedImport
assert PIL is not None and Image is not None, "failed to load Pillow"
try:
PIL_VERSION = PIL.PILLOW_VERSION
except:
PIL_VERSION = Image.VERSION
assert PIL is not None and Image is not None
PIL_VERSION = PIL.PILLOW_VERSION
if hasattr(Image, "DEBUG"):
#for older versions (pre 3.0), use Image.DEBUG flag:
Image.DEBUG = int(PIL_DEBUG)
Expand Down

0 comments on commit 63b8685

Please sign in to comment.