11#!/usr/local/autopkg/python
2- # -*- coding: utf-8 -*-
32#
43# Copyright 2016 Nathan Felton (n8felton)
54#
@@ -40,7 +39,7 @@ class IntelXDKInfoProvider(URLGetter):
4039 },
4140 "base_url" : {
4241 "required" : False ,
43- "description" : "Default is {0 }." .format (XDK_BASE_URL ),
42+ "description" : "Default is {}." .format (XDK_BASE_URL ),
4443 },
4544 }
4645 output_variables = {
@@ -62,15 +61,15 @@ def main(self):
6261 # Capture input variables
6362 release = self .env .get ("release" , "latest" )
6463 base_url = self .env .get ("base_url" , XDK_BASE_URL )
65- updates_url = "{0}{1 }" .format (base_url , "updates.json" )
64+ updates_url = "{}{ }" .format (base_url , "updates.json" )
6665 self .output ("Updates URL: {updates_url}" .format (updates_url = updates_url ), 2 )
6766
6867 # Get information on updates
6968 updates = self .get_xdk_updates (updates_url )
7069 self .output (updates , 3 )
7170
7271 # Set output variables
73- download_url = "{0}{1 }" .format (base_url , updates [release ]["macosx" ]["file" ])
72+ download_url = "{}{ }" .format (base_url , updates [release ]["macosx" ]["file" ])
7473 self .env ["url" ] = download_url
7574 md5checksum = updates [release ]["macosx" ]["fileMD5" ]
7675 self .env ["md5checksum" ] = md5checksum
0 commit comments