mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Use relative import for _imaging
This commit is contained in:
parent
3ca5aed602
commit
aff6eccec5
|
@ -53,7 +53,7 @@ try:
|
|||
# the "open" function to identify files, but you cannot load
|
||||
# them. Note that other modules should not refer to _imaging
|
||||
# directly; import Image and use the Image.core variable instead.
|
||||
import _imaging as core
|
||||
from . import _imaging as core
|
||||
except ImportError as v:
|
||||
core = _imaging_not_installed()
|
||||
if str(v)[:20] == "Module use of python" and warnings:
|
||||
|
|
Loading…
Reference in New Issue
Block a user