def basicAuth(realm):
 assert ('"' not in realm), 'Realms cannot contain the " (quote) character.'
 return ('Basic realm="%s"' % realm)

def basicAuth ( realm ) : assert ( '"' not in realm ) , 'Realms cannot contain the " (quote) character.' return ( 'Basic realm="%s"' % realm )
challengenes the client for a basic authentication .