Kaydet (Commit) bc2ce572 authored tarafından Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

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

function which shadows the builtin.

Will backport to 3.0
üst 9a0a65b5
...@@ -223,7 +223,7 @@ class UnixBrowser(BaseBrowser): ...@@ -223,7 +223,7 @@ class UnixBrowser(BaseBrowser):
cmdline = [self.name] + raise_opt + args cmdline = [self.name] + raise_opt + args
if remote or self.background: if remote or self.background:
inout = open(os.devnull, "r+") inout = io.open(os.devnull, "r+")
else: else:
# for TTY browsers, we need stdin/out # for TTY browsers, we need stdin/out
inout = None inout = None
......
...@@ -16,6 +16,9 @@ Core and Builtins ...@@ -16,6 +16,9 @@ Core and Builtins
Library 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 - Issue #1055234: cgi.parse_header(): Fixed parsing of header parameters to
support unusual filenames (such as those containing semi-colons) in support unusual filenames (such as those containing semi-colons) in
Content-Disposition headers. Content-Disposition headers.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment