diff --git a/PIL/OleFileIO.py b/PIL/OleFileIO.py index 2d6aeb85c..b3caa10d5 100644 --- a/PIL/OleFileIO.py +++ b/PIL/OleFileIO.py @@ -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