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:
parent
9a0a65b524
commit
bc2ce57203
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue