Mercurial > public > mercurial-scm > hg-stable
diff hgext/patchbomb.py @ 6548:962eb403165b
replace usage of os.popen() with util.popen()
To make this possible, I added a mode parameter to both implementations of
util.popen(), defaulting to 'r' (as it does in the Python stdlib).
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Mon, 14 Apr 2008 14:34:38 +0200 |
parents | a135374ed5fc |
children | 53465a7464e2 |
line wrap: on
line diff
--- a/hgext/patchbomb.py Sun Apr 13 11:31:45 2008 -0500 +++ b/hgext/patchbomb.py Mon Apr 14 14:34:38 2008 +0200 @@ -404,7 +404,7 @@ ui.status('Displaying ', m['Subject'], ' ...\n') ui.flush() if 'PAGER' in os.environ: - fp = os.popen(os.environ['PAGER'], 'w') + fp = util.popen(os.environ['PAGER'], 'w') else: fp = ui generator = email.Generator.Generator(fp, mangle_from_=False)