blob: 4fb1f12476e715ccd400b8b68e8f097d385fab2a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- nml-0.4.5/nml/version_info.py.old 2018-06-30 09:10:30.000000000 +0000
+++ nml-0.4.5/nml/version_info.py 2020-01-11 00:14:30.683254313 +0000
@@ -71,7 +71,10 @@
#PIL
try:
from PIL import Image
- versions["PIL"] = Image.VERSION
+ if hasattr(Image, 'VERSION'):
+ versions["PIL"] = Image.VERSION
+ else:
+ versions["PIL"] = "1.1.7" # Pillow
except ImportError:
try:
import Image
|