Your IP : 3.149.254.229


Current Path : /usr/lib/python3.6/site-packages/pyudev/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/pyudev/__pycache__/_compat.cpython-36.pyc

3

װV��@s<dZddlmZmZmZmZddlmZmZm	Z	dd�Z
dS)z�
    pyudev._compat
    ==============

    Compatibility for Python versions, that lack certain functions.

    .. moduleauthor::  Sebastian Wiesner  <lunaryorn@gmail.com>
�)�print_function�division�unicode_literals�absolute_import)�Popen�CalledProcessError�PIPEcCs2t|td�}|j�d}|jdkr.t|j|��|S)z]
    Compatibility with :func:`subprocess.check_output` from Python 2.7 and
    upwards.
    )�stdoutr)rrZcommunicate�
returncoder)Zcommand�proc�output�r
�/usr/lib/python3.6/_compat.py�check_output#s

rN)�__doc__Z
__future__rrrr�
subprocessrrrrr
r
r
r�<module>s

?>