Amaury Forgeot d'Arc added the comment:
This is expected behavior:
http://docs.python.org/library/stdtypes.html#str.lstrip
"""The chars argument is not a prefix; rather, all combinations of its values
are stripped"""
--
nosy: +amaury.forgeotdarc
resolution: -> invalid
status: open ->
New submission from Thomas Turner :
Problem with lstrip
>>> s = 'msgid "supplier code"'
>>>
>>> s.lstrip('msgid "')
'upplier code"'
>>>
It should come back with supplier code"
To get round the bug I did
>>> s.lstrip('msgid ').lstrip('"')
'supplier code"'
>>>
--
components: None
mess