17 lines
645 B
Diff
17 lines
645 B
Diff
Grabbed from https://github.com/mat813/freebsd-ports/tree/d9a5e385afb3dab755ebe5138b09cf7351f992d9/graphics/py-mcomix/files
|
|
--- a/mcomix/run.py 2016-02-12 18:52:12 UTC
|
|
+++ b/mcomix/run.py
|
|
@@ -203,7 +203,11 @@ def run():
|
|
|
|
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=' ')
|