def is_svn_page(html):
 return (re.search('<title>[^<]*Revision \\d+:', html) and re.search('Powered by (?:<a[^>]*?>)?Subversion', html, re.I))

def is_svn_page ( html ) : return ( re . search ( '<title>[^<]*Revision \\d+:' , html ) and re . search ( 'Powered by (?:<a[^>]*?>)?Subversion' , html , re . I ) )
returns true if the page appears to be the index page of an svn repository .