From 73dbae5fa5ba70a1a157a609e037fae1e045eb51 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 23 Mar 2018 05:44:25 +0000 Subject: [PATCH] remove if brackets --- src/parse.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/parse.py b/src/parse.py index a11e45d..b7bd221 100644 --- a/src/parse.py +++ b/src/parse.py @@ -19,13 +19,13 @@ class Parse(object): # Generating the number of bits for memory map # lower_offset = 0 - if(Addressing == 'BYTE'): + if Addressing == 'BYTE': lower_offset = 0 - elif(Addressing == 'HWORD'): + elif Addressing == 'HWORD': lower_offset = 1 - elif(Addressing == 'WORD'): + elif Addressing == 'WORD': lower_offset = 2 - elif(Addressing == 'DWORD'): + elif Addressing == 'DWORD': lower_offset = 3 else: print('ERROR: Addressing should be one of: BYTE, HWORD, WORD, DWORD') @@ -75,7 +75,7 @@ class Parse(object): if(count > 1): print("ERROR: Multiple assignment for pin: " + str(each)) duplicate = True - if(duplicate): + if duplicate: exit(1) # Check-2: confirm if N_* matches the instances in the pinmap -- 2.30.2