This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, gpolo, mark
Date 2008-05-12.13:58:30
SpamBayes Score 7.1183575e-05
Marked as misclassified No
Message-id <1210600712.41.0.739484484081.issue2835@psf.upfronthosting.co.za>
In-reply-to
Content
The traceback suggest a problem when using KDE: a call to file() was
renamed to open(), this clashes with webbrowser.open().
Can you try the following patch:

Index: Lib/webbrowser.py
===================================================================
--- Lib/webbrowser.py   (revision 63159)
+++ Lib/webbrowser.py   (working copy)
@@ -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)
History
Date User Action Args
2008-05-12 13:58:32amaury.forgeotdarcsetspambayes_score: 7.11836e-05 -> 7.1183575e-05
recipients: + amaury.forgeotdarc, mark, gpolo
2008-05-12 13:58:32amaury.forgeotdarcsetspambayes_score: 7.11836e-05 -> 7.11836e-05
messageid: <1210600712.41.0.739484484081.issue2835@psf.upfronthosting.co.za>
2008-05-12 13:58:31amaury.forgeotdarclinkissue2835 messages
2008-05-12 13:58:31amaury.forgeotdarccreate