mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-15 20:06:28 +03:00
Merge pull request #2833 from hugovk/olefile-importerror
Replace PIL.OleFileIO warning with descriptive ImportError
This commit is contained in:
commit
feec55e392
|
@ -1,12 +1,4 @@
|
||||||
import warnings
|
raise ImportError(
|
||||||
|
|
||||||
warnings.warn(
|
|
||||||
'PIL.OleFileIO is deprecated. Use the olefile Python package '
|
'PIL.OleFileIO is deprecated. Use the olefile Python package '
|
||||||
'instead. This module will be removed in a future version.',
|
'instead. This module will be removed in a future version.'
|
||||||
DeprecationWarning
|
|
||||||
)
|
)
|
||||||
|
|
||||||
import olefile
|
|
||||||
import sys
|
|
||||||
|
|
||||||
sys.modules[__name__] = olefile
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user