
 m[c           @@ s  d  Z  d d l m Z d d l m Z d d l Z d d l Z e j d k r e j d d k  r y d d l Z	 Wq e
 k
 r d d l	 Z	 q Xn d d l	 Z	 d d d	 d
 d g Z e e	 d  r e	 j Z e	 j Z e	 j Z e	 j Z e	 j Z n$ d   Z d   Z d Z d Z d Z d S(   s  
A replacement wrapper around the subprocess module, with a number of
work-arounds:
- Provides a stub implementation of subprocess members on Google App Engine
  (which are missing in subprocess).
- Use subprocess32, backport from python 3.2 on Linux/Mac work-around for
  https://github.com/matplotlib/matplotlib/issues/5314

Instead of importing subprocess, other modules should use this as follows:

from matplotlib.compat import subprocess

This module is safe to import from anywhere within matplotlib.
i    (   t   absolute_import(   t   print_functionNt   posixi   t   Popent   PIPEt   STDOUTt   check_outputt   CalledProcessErrorc          O@ s   t  d   d  S(   Ns!   subprocess.Popen is not supported(   t   OSError(   t   argst   kwargs(    (    s;   lib/python2.7/site-packages/matplotlib/compat/subprocess.pyR   *   s    c          O@ s   t  d   d  S(   Ns(   subprocess.check_output is not supported(   R   (   R	   R
   (    (    s;   lib/python2.7/site-packages/matplotlib/compat/subprocess.pyR   -   s    ii(   t   __doc__t
   __future__R    R   t   ost   syst   namet   version_infot   subprocess32t
   subprocesst   ImportErrort   __all__t   hasattrR   R   R   R   R   t   None(    (    (    s;   lib/python2.7/site-packages/matplotlib/compat/subprocess.pyt   <module>   s,   "						