[Python-3000-checkins] r63163 - in python/branches/py3k: Lib/webbrowser.py Misc/NEWS
amaury.forgeotdarc
python-3000-checkins at python.org
Mon May 12 16:41:01 CEST 2008
Author: amaury.forgeotdarc
Date: Mon May 12 16:41:00 2008
New Revision: 63163
Log:
#Issue2835: Correct an infinite recursion in webbrowser.open(), when KDE Konqueror is tried.
Modified:
python/branches/py3k/Lib/webbrowser.py
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Lib/webbrowser.py
==============================================================================
--- python/branches/py3k/Lib/webbrowser.py (original)
+++ python/branches/py3k/Lib/webbrowser.py Mon May 12 16:41:00 2008
@@ -347,7 +347,8 @@
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)
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Mon May 12 16:41:00 2008
@@ -25,6 +25,8 @@
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.
More information about the Python-3000-checkins
mailing list