Commit bc2ce572 authored by 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
parent 9a0a65b5
......@@ -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.
......
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