#Issue2835: Correct an infinite recursion in webbrowser.open(), when KDE Konqueror is tried.
This commit is contained in:
parent
0740459248
commit
2b2b44dc2c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue