Support pillow and imaging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gwibber |
New
|
Undecided
|
Unassigned |
Bug Description
Python has two PIL provides, python-imaging and python-pillow. Fedora is moving to python-pillow in the next release.
imaging supports being loaded by doing:
import Image
or
from PIL import Image
pillow only supports the latter, so we're patching all the calls to use 'from PIL import image'
Please apply the below changes! (They're against 3.4.2, but the code hasn't changed in any real way.)
Index: gwibber-
=======
--- gwibber-
+++ gwibber-
@@ -1,6 +1,7 @@
#!/usr/bin/env python
-import os, hashlib, urllib2, Image
+import os, hashlib, urllib2
+from PIL import Image
DEFAULT_AVATAR = 'http://
Index: gwibber-
=======
--- gwibber-
+++ gwibber-
@@ -8,7 +8,7 @@ import os, sys
from hashlib import sha1
from os import makedirs, remove, environ
from os.path import join, isdir, realpath, exists
-import Image
+from PIL import Image
import mx.DateTime
from gwibber.microblog import network
from gwibber.