Merge pull request #2833 from hugovk/olefile-importerror

Replace PIL.OleFileIO warning with descriptive ImportError
This commit is contained in:
wiredfool 2017-11-05 22:23:36 +00:00 committed by GitHub
commit feec55e392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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