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 desbma
Recipients desbma
Date 2017-05-01.12:34:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493642057.46.0.399695458413.issue30219@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3.6.1 (default, Mar 27 2017, 00:27:06) 
[GCC 6.3.1 20170306] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import webbrowser
>>> webbrowser.open("https://www.google.com")
True
>>> This tool has been deprecated, use 'gio open' instead.
See 'gio help open' for more info.

A quick test reveals it is the invocation of xdg-open that outputs the warning:

$ xdg-open --version
xdg-open 1.1.0 rc3
$ xdg-open https://www.google.com
This tool has been deprecated, use 'gio open' instead.
See 'gio help open' for more info.

It can be quite annoying because in my program the message is outputted in a ncurses UI and it messes the display.

Possible changes to fix this:
* Silence xdg-open output (pass stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL in Popen call)
* Detect and use "gio open" if available
History
Date User Action Args
2017-05-01 12:34:17desbmasetrecipients: + desbma
2017-05-01 12:34:17desbmasetmessageid: <1493642057.46.0.399695458413.issue30219@psf.upfronthosting.co.za>
2017-05-01 12:34:17desbmalinkissue30219 messages
2017-05-01 12:34:17desbmacreate