mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
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
2 changed files with 4 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ def _invoke(self, args, remote, autoraise):
|
|||
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…
Add table
Add a link
Reference in a new issue