2008/9/4 Mathieu Prevot <mathieu.prevot @gmail.com>:
A dummy
a.rstrip('/')
Sorry for the noise
Mathieu
Hi,
>
for scripts that take arguments, I would like to remove the trailing
slash if it's present.
>
Is there something else than:
>
a='/usr/local/lib/'
if a[-1] == '/':
a = list(a)
a.pop()
''.join(a)
>
for scripts that take arguments, I would like to remove the trailing
slash if it's present.
>
Is there something else than:
>
a='/usr/local/lib/'
if a[-1] == '/':
a = list(a)
a.pop()
''.join(a)
a.rstrip('/')
Sorry for the noise
Mathieu