From 701bdbe3f2eed440b4587cd7d08478a0f6a3ae84 Mon Sep 17 00:00:00 2001 From: Graham R Pugh Date: Fri, 31 Jul 2020 13:45:05 +0200 Subject: [PATCH] fix a pylint issue with plistlib --- installinstallmacos.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installinstallmacos.py b/installinstallmacos.py index 163d052..4e7ef43 100755 --- a/installinstallmacos.py +++ b/installinstallmacos.py @@ -147,7 +147,7 @@ def read_plist_from_string(bytestring): return plistlib.loads(bytestring) except AttributeError: # plistlib module doesn't have a load function (as in Python 2) - return plistlib.readPlistFromString(bytestring) + return plistlib.readPlistFromString(bytestring) # pylint: disable=no-member def write_plist(plist_object, filepath): @@ -806,7 +806,7 @@ def main(): for index, product_id in enumerate(product_info): not_valid = "" if not product_info[product_id]["UnsupportedModels"]: - not_valid = "WARNING: No unsupported model data" + not_valid += "WARNING: No unsupported model data " else: if ( hw_model in product_info[product_id]["UnsupportedModels"] @@ -814,7 +814,7 @@ def main(): ): not_valid = "Unsupported Model Identifier" if not product_info[product_id]["BoardIDs"]: - not_valid = "WARNING: No supported Board ID data" + not_valid += "WARNING: No supported Board ID data " else: if board_id not in product_info[product_id]["BoardIDs"] and is_vm == False: not_valid = "Unsupported Board ID"