Message97082
Attached a program which shows the relevant behaviour:
import shlex
tests = [ "foo#bar", "foo #bar" ]
for t in tests:
print "%s -> %s" % (t,[x for x in shlex.shlex(t,posix=True)])
results in
$ python lexer_test.py
foo#bar -> ['foo']
foo #bar -> ['foo']
(expected of course is ['foo#bar'] on the first line). |
|
Date |
User |
Action |
Args |
2009-12-31 09:10:36 | jjdmol2 | set | recipients:
+ jjdmol2, ferringb |
2009-12-31 09:10:36 | jjdmol2 | set | messageid: <1262250636.68.0.794284185992.issue7611@psf.upfronthosting.co.za> |
2009-12-31 09:10:35 | jjdmol2 | link | issue7611 messages |
2009-12-31 09:10:35 | jjdmol2 | create | |
|