def _addSlash(request):
 url = URL.fromText(request.uri.decode('ascii'))
 url = url.replace(path=(list(url.path) + [u'']))
 return url.asText().encode('ascii')

def _addSlash ( request ) : url = URL . fromText ( request . uri . decode ( 'ascii' ) ) url = url . replace ( path = ( list ( url . path ) + [ u'' ] ) ) return url . asText ( ) . encode ( 'ascii' )
add a trailing slash to c{request}s uri .