From: Luke Kenneth Casson Leighton Date: Fri, 23 Mar 2018 05:44:53 +0000 (+0000) Subject: remove if brackets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=109619f5f3fd554bcfc6d05f490bdae2e75aec07;p=pinmux.git remove if brackets --- diff --git a/src/parse.py b/src/parse.py index b7bd221..6f4d8c8 100644 --- a/src/parse.py +++ b/src/parse.py @@ -58,7 +58,7 @@ class Parse(object): # Check-1: ensure that no pin is present in both muxed and dedicated pins for muxcell in muxed_cells: for dedcel in dedicated_cells: - if(dedcel[1] in muxcell): + if dedcel[1] in muxcell: print("ERROR: " + str(dedcel[1]) + " present \ in dedicated & muxed lists") exit(1) @@ -72,7 +72,7 @@ class Parse(object): duplicate = False for each in unique: count = pinnumbers.count(each) - if(count > 1): + if count > 1: print("ERROR: Multiple assignment for pin: " + str(each)) duplicate = True if duplicate: