def _scrub_uri(uri):
 if (('/api/authorizations/cookie/' in uri) or ('/api/authorizations/token/' in uri)):
  uri = (uri.rsplit('/', 1)[0] + '/[secret]')
 return uri

def _scrub_uri ( uri ) : if ( ( '/api/authorizations/cookie/' in uri ) or ( '/api/authorizations/token/' in uri ) ) : uri = ( uri . rsplit ( '/' , 1 ) [ 0 ] + '/[secret]' ) return uri
scrub auth info from uri .