~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/shhh.py

  • Committer: William Grant
  • Date: 2012-01-01 03:10:25 UTC
  • mto: This revision was merged to the branch mainline in revision 14614.
  • Revision ID: william.grant@canonical.com-20120101031025-pcl0na3sbgfrztcw
utilities

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
__metaclass__ = type
11
11
 
 
12
from subprocess import (
 
13
    PIPE,
 
14
    Popen,
 
15
    )
12
16
import sys
13
 
from subprocess import Popen, PIPE
 
17
 
14
18
 
15
19
def shhh(cmd):
16
20
    r"""Run a command and suppress output unless it returns a non-zero exitcode