Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d815083

Browse files
committed
Add subprocess deprecation message
1 parent 7706201 commit d815083

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/matplotlib/compat/subprocess.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
This module is safe to import from anywhere within matplotlib.
1111
"""
1212
import subprocess
13+
from matplotlib.cbook import warn_deprecated
14+
warn_deprecated(since='3.0',
15+
name='matplotlib.compat.subprocess',
16+
alternative='All the functionality provided by this module '
17+
'is available in the python 3 standard library '
18+
'"subprocess" module.',
19+
obj_type='module')
1320

1421
__all__ = ['Popen', 'PIPE', 'STDOUT', 'check_output', 'CalledProcessError']
1522

0 commit comments

Comments
 (0)