On Jun 7, 6:13 pm, Paul Rubin <http://phr...@nospam.invalid> wrote:
> Aaron Brady <castiro...@gmail.com> writes:
> > url+= { '/': '' }.get( url[ -1 ], '/' )
>
> > Shorter is always better.
>
> url = url.rstrip('/') + '/'

I was joking.  Sheesh.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to