#Issue2835: Correct an infinite recursion in webbrowser.open(), when KDE Konqueror is tried.

This commit is contained in:
Amaury Forgeot d'Arc 2008-05-12 14:41:00 +00:00
parent 0740459248
commit 2b2b44dc2c
2 changed files with 4 additions and 1 deletions

View File

@ -347,7 +347,8 @@ class Konqueror(BaseBrowser):
else:
action = "openURL"
devnull = open(os.devnull, "r+")
import io
devnull = io.open(os.devnull, "r+")
# if possible, put browser in separate process group, so
# keyboard interrupts don't affect browser as well as Python
setsid = getattr(os, 'setsid', None)

View File

@ -25,6 +25,8 @@ Extension Modules
Library
-------
- Issue 2865: webbrowser.open() works again in a KDE environment.
- The multifile module has been removed.
- The SocketServer module has been renamed to socketserver.