def _MakeWelcomeProperties(web_xml, static_files):
 static_welcome_files = []
 for welcome_file in web_xml.welcome_files:
  if any((f.endswith(('/' + welcome_file)) for f in static_files)):
   static_welcome_files.append(welcome_file)
 welcome_value = (tuple(static_welcome_files) or None)
 return {'welcome': welcome_value}

def _MakeWelcomeProperties ( web_xml , static_files ) : static_welcome_files = [ ] for welcome_file in web_xml . welcome_files : if any ( ( f . endswith ( ( '/' + welcome_file ) ) for f in static_files ) ) : static_welcome_files . append ( welcome_file ) welcome_value = ( tuple ( static_welcome_files ) or None ) return { 'welcome' : welcome_value }
makes the welcome_properties dict given web_xml and the static files .