Pillow/PIL/OleFileIO.py
Jon Dufresne 52b1f46b12 Deprecate vendored version of olefile Python package in favor of upstream
Pillow now requires the olefile Python package through setup.py.

This removes Pillow's maintenance of this library by instead relying on
and reusing the upstream version. No longer need to regularly update the
vendored package and docs. olefile bug fixes and features can go
directly upstream.

During travis tests, now installs Pillow package before tests; this will
also install all dependencies (currently, only olefile).
2016-11-22 18:17:31 -08:00

15 lines
272 B
Python
Executable File

#!/usr/bin/env python
import warnings
warnings.warn(
'PIL.OleFileIO is deprecated. Use the olefile Python package '
'instead. This module will be removed in a future version.',
DeprecationWarning
)
import olefile
import sys
sys.modules[__name__] = olefile