]> granicus.if.org Git - python/commit
#15447: Use subprocess.DEVNULL in webbrowser, instead of opening
authorR David Murray <rdmurray@bitdance.com>
Mon, 3 Sep 2012 16:44:29 +0000 (12:44 -0400)
committerR David Murray <rdmurray@bitdance.com>
Mon, 3 Sep 2012 16:44:29 +0000 (12:44 -0400)
commit02ca144b92eef8d2b8da10c7b70b4e9d42480b9b
tree063f5af15f17e058cc53f41492753a491d00d166
parentd674a770e9880f8587129e18bf7faa049c56c571
#15447: Use subprocess.DEVNULL in webbrowser, instead of opening

This eliminates a ResourceWarning, since before webbrowser was
explicitly opening os.devnull and then leaving it open.  Tests
to follow.

Patch by Anton Barkovsky.
Lib/webbrowser.py
Misc/NEWS