Mark Summerfield <[EMAIL PROTECTED]> added the comment:

On 2008-05-12, Amaury Forgeot d'Arc wrote:
> Amaury Forgeot d'Arc <[EMAIL PROTECTED]> 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!

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2835>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to