satori/satori/common/popen.py
Cian Brennan 09b6a7cd8b Fixes for pep8 tests
Pep8 tests were failing due to an error in requirements.txt
pep8 was specified as allowing from 1.5.7, with no minimum version.
Flake8 however fails with versions >1.6.
Added this requirement, and also fixed errors from pep8 tests

Change-Id: I24cb0ff34d6a28a6932a8df1206add287aca1e29
2015-05-05 11:16:41 +01:00

24 lines
854 B
Python

# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""Popen wrapper to allow custom patching of subprocess.Popen."""
import subprocess
PIPE = subprocess.PIPE
STDOUT = subprocess.STDOUT
def popen(*args, **kwargs):
"""Wrap Popen to allow for higher level patching if necessary."""
return subprocess.Popen(*args, **kwargs)