summaryrefslogtreecommitdiff
path: root/libre/mcomix/486f02.patch
blob: 055884047fd2fe3764ffbdd9f719e86f084bd362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/mcomix/run.py
+++ b/mcomix/run.py
@@ -203,7 +203,11 @@
 
     try:
         import PIL.Image
-        assert PIL.Image.VERSION >= '1.1.5'
+        try:
+            assert PIL.Image.VERSION >= '1.1.5'
+        except AttributeError:
+            # Field VERSION deprecated in Pillow 5.2.0 and dropped in 6.0.0
+            assert PIL.__version__ >= '5.2.0'
 
     except AssertionError:
         log.error( _("You don't have the required version of the Python Imaging"), end=' ')