remove if brackets
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 23 Mar 2018 05:44:25 +0000 (05:44 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 23 Mar 2018 05:44:25 +0000 (05:44 +0000)
src/parse.py

index a11e45dff5081091884082dbf30eee6b018c929d..b7bd22118f3bd20a45251978c7d5f8664b0a28d3 100644 (file)
@@ -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