summaryrefslogtreecommitdiff
path: root/user/nml/pillow.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-11 02:09:22 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-11 02:09:22 +0000
commit095e14b7e22e82ed4c1719894fe1f432b67ee3d0 (patch)
treed2d0c75c8233d026da4c59ea370f82dc565c712c /user/nml/pillow.patch
parentc20cf424f2d1b43aa8abeee6b77c5ee2ef51162c (diff)
downloadpackages-095e14b7e22e82ed4c1719894fe1f432b67ee3d0.tar.gz
packages-095e14b7e22e82ed4c1719894fe1f432b67ee3d0.tar.bz2
packages-095e14b7e22e82ed4c1719894fe1f432b67ee3d0.tar.xz
packages-095e14b7e22e82ed4c1719894fe1f432b67ee3d0.zip
user/nml: Fix compatibility with py3-pillow >= 6.0
Diffstat (limited to 'user/nml/pillow.patch')
-rw-r--r--user/nml/pillow.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/user/nml/pillow.patch b/user/nml/pillow.patch
new file mode 100644
index 000000000..4fb1f1247
--- /dev/null
+++ b/user/nml/pillow.patch
@@ -0,0 +1,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