[PATCH RESEND] util: replace util.nulldev with os.devnull
Ross Lagerwall
rosslagerwall at gmail.com
Sat Aug 18 14:25:58 UTC 2012
On 08/18/2012 02:46 PM, Idan Kamara wrote:
>> +++ b/mercurial/windows.py
>> @@ -24,7 +24,6 @@
>> testpid = win32.testpid
>> unlink = win32.unlink
>>
>> -nulldev = 'NUL:'
>
> Probably doesn't matter but Python's definition of devnull on
> Windows is simply 'nul', without the : at the end.
>
> http://docs.python.org/library/os#os.devnull
>
Presumably they are equivalent. Also, os.devnull is already used in a
few places in the codebase.
Regards
--
Ross Lagerwall
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20120818/d3ac530d/attachment.asc>
More information about the Mercurial-devel
mailing list