docs: def _parse_pricing(url, name):
      '''
      Download and parse an individual pricing file from AWS
  
      .. versionadded:: 2015.8.0
      '''
      price_js = http.query(url, text=True)
  
      items = []
      current_item = ''
  
      price_js = re.sub(JS_COMMENT_RE, '', price_js['text'])
      price_js = price_js.strip().rstrip(');').lstrip('callback(')
      for keyword in (
          'vers',
          'config',
          'rate',
          'valueColumns',
          'currencies',
          'instanceTypes',
          'type',
          'ECU',
          'storageGB',
          'name',
          'vCPU',
          'memoryGiB',
          'storageGiB',
          'USD',
      ):
          price_js = price_js.replace(keyword, '"{0}"'.format(keyword))
  
      for keyword in ('region', 'price', 'size'):
          price_js = price_js.replace(keyword, '"{0}"'.format(keyword))
          price_js = price_js.replace('"{0}"s'.format(keyword), '"{0}s"'.format(keyword))
  
      price_js = price_js.replace('""', '"')
  
      # Turn the data into something that's easier/faster to process
      regions = {}
      price_json = salt.utils.json.loads(price_js)
      for region in price_json['config']['regions']:
          sizes = {}
          for itype in region['instanceTypes']:
              for size in itype['sizes']:
                  sizes[size['size']] = size
          regions[region['region']] = sizes
  
      outfile = os.path.join(
          __opts__['cachedir'], 'ec2-pricing-{0}.p'.format(name)
      )
      with salt.utils.files.fopen(outfile, 'w') as fho:
          salt.utils.msgpack.dump(regions, fho)
  
      return True