From c7c3ab6c317e6b8b185a87592e53c41d453a9a32 Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Thu, 2 May 2019 17:19:18 -0700 Subject: [PATCH] Revert Python 3 chnages since they relied on a non-standard module. This reverts commit adcff204f460bf5a977798661572947d29637a88. --- installinstallmacos.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/installinstallmacos.py b/installinstallmacos.py index 345b726..4085dc8 100755 --- a/installinstallmacos.py +++ b/installinstallmacos.py @@ -67,7 +67,7 @@ def get_seeding_program(sucatalog_url): '''Returns a seeding program name based on the sucatalog_url''' try: seed_catalogs = plistlib.readPlist(SEED_CATALOGS_PLIST) - for key, value in seed_catalogs.items(): + for key, value in list(seed_catalogs.items()): if sucatalog_url == value: return key return '' @@ -341,7 +341,8 @@ def find_mac_os_installers(catalog): installers''' mac_os_installer_products = [] if 'Products' in catalog: - for product_key in catalog['Products'].keys(): + product_keys = list(catalog['Products'].keys()) + for product_key in product_keys: product = catalog['Products'][product_key] try: if product['ExtendedMetaInfo'][