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