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