can it be shorter?

Carlos Valiente carlos at pepelabs.net
Thu Jun 11 04:34:08 EDT 2009


Paul Rubin <http> writes:
> url = url.rstrip('/') + '/'

That's what I use: It has the (nice) side effect of ending the URL with a
*single* slash.

C







More information about the Python-list mailing list