Mercurial > hg-stable
diff hgext/convert/common.py @ 17391:fc24c10424d2 stable
util: replace util.nulldev with os.devnull
Python since 2.4 has supported os.devnull so having util.nulldev
is unnecessary.
author | Ross Lagerwall <rosslagerwall@gmail.com> |
---|---|
date | Sat, 04 Aug 2012 07:14:40 +0200 |
parents | cfb6682961b8 |
children | e169b11fa1e0 |
line wrap: on
line diff
--- a/hgext/convert/common.py Thu Aug 23 18:19:19 2012 -0500 +++ b/hgext/convert/common.py Sat Aug 04 07:14:40 2012 +0200 @@ -276,9 +276,9 @@ pass cmdline = [util.shellquote(arg) for arg in cmdline] if not self.ui.debugflag: - cmdline += ['2>', util.nulldev] + cmdline += ['2>', os.devnull] if closestdin: - cmdline += ['<', util.nulldev] + cmdline += ['<', os.devnull] cmdline = ' '.join(cmdline) return cmdline