Mercurial > hg > config
changeset 179:a5061b41a781
make flag optional
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 08 Nov 2011 15:36:55 -0800 |
parents | fa94f0b4459d |
children | f52486ceadee |
files | python/process.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/python/process.py Tue Nov 08 12:08:11 2011 -0800 +++ b/python/process.py Tue Nov 08 15:36:55 2011 -0800 @@ -3,9 +3,9 @@ import subprocess import sys -def ps(): +def ps(arg='axwww'): retval = [] - process = subprocess.Popen(['ps', 'axwww'], stdout=subprocess.PIPE) + process = subprocess.Popen(['ps', arg], stdout=subprocess.PIPE) stdout, _ = process.communicate() header = None for line in stdout.splitlines():