def check_platform(name):
 def check(n, filename):
  platforms = get_nodes_by_name(n, name)
  try:
   vals = [(p.attributes['os'].value, p.attributes['version'].value, p.getAttribute('notes')) for p in platforms]
  except KeyError as e:
   raise ManifestException(("<platform> tag is missing required '%s' attribute" % str(e)))
  return [Platform(*v) for v in vals]
 return check

def check_platform ( name ) : def check ( n , filename ) : platforms = get_nodes_by_name ( n , name ) try : vals = [ ( p . attributes [ 'os' ] . value , p . attributes [ 'version' ] . value , p . getAttribute ( 'notes' ) ) for p in platforms ] except KeyError as e : raise ManifestException ( ( "<platform> tag is missing required '%s' attribute" % str ( e ) ) ) return [ Platform ( * v ) for v in vals ] return check
validator for manifest platform .