Removed unnecessary lines
This commit is contained in:
parent
a38bb665a3
commit
29fbe684ec
|
@ -48,13 +48,9 @@ def getTable(variables, function):
|
|||
break
|
||||
if var in "01" and tempFunction[index - 1] == '~':
|
||||
tempFunction = tempFunction.replace('~' + var, str(1 - int(var) + " "))
|
||||
try:
|
||||
if var in variables:
|
||||
tempFunction = tempFunction[:index] + binary[variables.index(var)] + tempFunction[index+1:] if tempFunction[index - 1] != '~' else tempFunction[:index-1] + str(int(not bool(int(binary[variables.index(tempFunction[index])]))))+" " + tempFunction[index+1:]
|
||||
index += 1
|
||||
except ValueError:
|
||||
index += 1
|
||||
continue
|
||||
try:
|
||||
truthTable[binary] = eval(tempFunction)
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue