Issue #4537: webbrowser.UnixBrowser failed because this module defines an open()

function which shadows the builtin.

Will backport to 3.0
This commit is contained in:
Amaury Forgeot d'Arc 2008-12-05 01:02:21 +00:00
parent 9a0a65b524
commit bc2ce57203
2 changed files with 4 additions and 1 deletions

View File

@ -223,7 +223,7 @@ class UnixBrowser(BaseBrowser):
cmdline = [self.name] + raise_opt + args
if remote or self.background:
inout = open(os.devnull, "r+")
inout = io.open(os.devnull, "r+")
else:
# for TTY browsers, we need stdin/out
inout = None

View File

@ -16,6 +16,9 @@ Core and Builtins
Library
-------
- Issue #4537: webbrowser.UnixBrowser would fail to open the browser because
it was calling the wrong open() function.
- Issue #1055234: cgi.parse_header(): Fixed parsing of header parameters to
support unusual filenames (such as those containing semi-colons) in
Content-Disposition headers.