[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-09-03 Thread R. David Murray

R. David Murray added the comment:

Given the logic of webbrowser, I think Anton's patch is correct.  The null 
strings are produced by the somewhat twisted logic of UnixBrowser.open, and the 
problem doesn't apply to the other cases of argument list generation.  (In 
those other cases, getting null strings would indicate a configuration error, 
which this case is not.)

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15509
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-08-13 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Better to fix producer of empty lines than filter those ones.
Keep in mind: there are several places there args list generated, probably you 
fix not all error sources.

--
nosy: +asvetlov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15509
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-08-06 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15509
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-08-04 Thread Anton Barkovsky

Anton Barkovsky added the comment:

Added tests in #15557.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15509
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-07-30 Thread Anton Barkovsky

New submission from Anton Barkovsky:

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.

--
components: Library (Lib)
files: webbrowser_args.patch
keywords: patch
messages: 166930
nosy: anton.barkovsky
priority: normal
severity: normal
status: open
title: webbrowser.open sometimes passes zero-length argument to the browser.
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file26607/webbrowser_args.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15509
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-07-30 Thread Anton Barkovsky

Changes by Anton Barkovsky swarmer...@gmail.com:


Removed file: http://bugs.python.org/file26607/webbrowser_args.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15509
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-07-30 Thread Anton Barkovsky

Changes by Anton Barkovsky swarmer...@gmail.com:


Added file: http://bugs.python.org/file26608/webbrowser_args.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15509
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-07-30 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti, georg.brandl
stage:  - test needed
versions: +Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15509
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com