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 anton.barkovsky
Recipients anton.barkovsky
Date 2012-07-30.22:35:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343687718.2.0.882765777761.issue15509@psf.upfronthosting.co.za>
In-reply-to
Content
Because of the way webbrowser.UnixBrowser.open generates command-line
arguments the resulting list sometimes looks like this:

  ['chromium', '', 'http://www.example.org/']

This seems to work fine with chromium for me but as you can see:

  >>> subprocess.call(['ls', '', '-l'])
  ls: cannot access : No such file or directory
  2

It's not a good idea to rely on that.
I'm attaching a patch that filters out those empty arguments.
History
Date User Action Args
2012-07-30 22:35:18anton.barkovskysetrecipients: + anton.barkovsky
2012-07-30 22:35:18anton.barkovskysetmessageid: <1343687718.2.0.882765777761.issue15509@psf.upfronthosting.co.za>
2012-07-30 22:35:17anton.barkovskylinkissue15509 messages
2012-07-30 22:35:17anton.barkovskycreate