Aaron Brady <castiro...@gmail.com> writes: > url+= { '/': '' }.get( url[ -1 ], '/' ) > > Shorter is always better.
url = url.rstrip('/') + '/' -- http://mail.python.org/mailman/listinfo/python-list
Aaron Brady <castiro...@gmail.com> writes: > url+= { '/': '' }.get( url[ -1 ], '/' ) > > Shorter is always better.
url = url.rstrip('/') + '/' -- http://mail.python.org/mailman/listinfo/python-list