mirror of https://github.com/kivy/kivy.git
Merge pull request #5555 from kivy/img_pil_import
python3 package of Pillow needs a updated Import
This commit is contained in:
commit
f7226c88c4
|
@ -4,7 +4,12 @@ PIL: PIL image loader
|
||||||
|
|
||||||
__all__ = ('ImageLoaderPIL', )
|
__all__ = ('ImageLoaderPIL', )
|
||||||
|
|
||||||
|
try:
|
||||||
import Image as PILImage
|
import Image as PILImage
|
||||||
|
except ImportError:
|
||||||
|
# for python3
|
||||||
|
from PIL import Image as PILImage
|
||||||
|
|
||||||
from kivy.logger import Logger
|
from kivy.logger import Logger
|
||||||
from kivy.core.image import ImageLoaderBase, ImageData, ImageLoader
|
from kivy.core.image import ImageLoaderBase, ImageData, ImageLoader
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue