def __init__(self, cmd, capturestderr=False, bufsize=-1):
        stderr = subprocess.PIPE if capturestderr else None
        PIPE = subprocess.PIPE
        self._popen = subprocess.Popen(cmd, bufsize=bufsize,
                                       shell=isinstance(cmd, basestring),
                                       stdin=PIPE, stdout=PIPE, stderr=stderr)
        self._setup(cmd)
Check if a string ends with given string or any one in given list.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/popen2.py/Popen3.__init__--crossover with--dataset/ETHPy150Open richrd/suplemon/suplemon/helpers.py/ends