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 mark
Recipients amaury.forgeotdarc, gpolo, mark
Date 2008-05-12.14:32:55
SpamBayes Score 1.9305087e-05
Marked as misclassified No
Message-id <200805121532.51714.mark@qtrac.eu>
In-reply-to <1210600712.41.0.739484484081.issue2835@psf.upfronthosting.co.za>
Content
On 2008-05-12, Amaury Forgeot d'Arc wrote:
> Amaury Forgeot d'Arc <amauryfa@gmail.com> added the comment:
>
> 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)

That fixed it!
History
Date User Action Args
2008-05-12 14:32:58marksetspambayes_score: 1.93051e-05 -> 1.9305087e-05
recipients: + mark, amaury.forgeotdarc, gpolo
2008-05-12 14:32:57marklinkissue2835 messages
2008-05-12 14:32:55markcreate