Issue #2666: Handle BROWSER environment variable properly for unknown browser names in the webbrowser module.
This commit is contained in:
parent
e7e941e7f7
commit
2e1308f520
|
@ -625,7 +625,9 @@ if "BROWSER" in os.environ:
|
||||||
# and prepend to _tryorder
|
# and prepend to _tryorder
|
||||||
for cmdline in _userchoices:
|
for cmdline in _userchoices:
|
||||||
if cmdline != '':
|
if cmdline != '':
|
||||||
_synthesize(cmdline, -1)
|
cmd = _synthesize(cmdline, -1)
|
||||||
|
if cmd[1] is None:
|
||||||
|
register(cmdline, None, GenericBrowser(cmdline), -1)
|
||||||
cmdline = None # to make del work if _userchoices was empty
|
cmdline = None # to make del work if _userchoices was empty
|
||||||
del cmdline
|
del cmdline
|
||||||
del _userchoices
|
del _userchoices
|
||||||
|
|
|
@ -364,6 +364,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #2666: Handle BROWSER environment variable properly for unknown browser
|
||||||
|
names in the webbrowser module.
|
||||||
|
|
||||||
- Issue #6054: Do not normalize stored pathnames in tarfile.
|
- Issue #6054: Do not normalize stored pathnames in tarfile.
|
||||||
|
|
||||||
- Issue #6794: Fix Decimal.compare_total and Decimal.compare_total_mag: NaN
|
- Issue #6794: Fix Decimal.compare_total and Decimal.compare_total_mag: NaN
|
||||||
|
|
Loading…
Reference in New Issue