File: api-pycompat27.rst

package info (click to toggle)
kitchen 1.1.1-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 1,284 kB
  • sloc: python: 6,983; makefile: 19
file content (35 lines) | stat: -rw-r--r-- 1,151 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
========================
Python 2.7 Compatibility
========================

.. module:: kitchen.pycompat27.subprocess

--------------------------
Subprocess from Python 2.7
--------------------------

The :mod:`subprocess` module included here is a direct import from
python-2.7's |stdlib|_.  You can access it via::

    >>> from kitchen.pycompat27 import subprocess

The motivation for including this module is that various API changing
improvements have been made to subprocess over time.  The following is a list
of the known changes to :mod:`subprocess` with the python version they were
introduced in:

====================================  ===
New API Feature                       Ver
====================================  ===
:exc:`subprocess.CalledProcessError`  2.5
:func:`subprocess.check_call`         2.5
:func:`subprocess.check_output`       2.7
:meth:`subprocess.Popen.send_signal`  2.6
:meth:`subprocess.Popen.terminate`    2.6
:meth:`subprocess.Popen.kill`         2.6
====================================  ===

.. seealso::

    The stdlib :mod:`subprocess` documentation
        For complete documentation on how to use subprocess