mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 18:36:17 +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
|
||||
|
||||
warnings.warn(
|
||||
raise ImportError(
|
||||
'PIL.OleFileIO is deprecated. Use the olefile Python package '
|
||||
'instead. This module will be removed in a future version.',
|
||||
DeprecationWarning
|
||||
'instead. This module will be removed in a future version.'
|
||||
)
|
||||
|
||||
import olefile
|
||||
import sys
|
||||
|
||||
sys.modules[__name__] = olefile
|
||||
|
|
Loading…
Reference in New Issue
Block a user