New submission from jamesf:
In [112]: def test_ws(s):
.....: sl = shlex.shlex(s)
.....: sl.whitespace = "|"
.....: sl.whitespace_split = True
.....: print list(sl)
In [114]: test_ws("h w") # works fine
['h w']
In [115]: test_ws("'h' w") # i expected ["'h' w"] here, but why?
["'h'", ' w']
----------
messages: 172573
nosy: jwfang
priority: normal
severity: normal
status: open
title: shlex bug?
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16186>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com