def _GetUniquePlatforms(spec):
 platforms = OrderedSet()
 for configuration in spec['configurations']:
  platforms.add(_ConfigPlatform(spec['configurations'][configuration]))
 platforms = list(platforms)
 return platforms

def _GetUniquePlatforms ( spec ) : platforms = OrderedSet ( ) for configuration in spec [ 'configurations' ] : platforms . add ( _ConfigPlatform ( spec [ 'configurations' ] [ configuration ] ) ) platforms = list ( platforms ) return platforms
returns the list of unique platforms for this spec .