removed error

This commit is contained in:
2026-04-09 17:50:00 +02:00
parent f201086cd0
commit 67b0295101
+2 -2
View File
@@ -6,7 +6,7 @@ def main(argv):
comp1 = ''
comp2 = ''
comp3 = ''
try:
opts, args = getopt.getopt(argv,"hc1:c2:c3:",["comp1=","comp2=","comp3="])
except getopt.GetoptError:
@@ -23,7 +23,7 @@ def main(argv):
elif opt in ("-c3","--comp3"):
comp3 = str(arg)
if len(comp1) != len(comp2) or str(len(comp1)) != str(len(comp3)):
if len(comp1) != len(comp2) or len(comp1) != len(comp3):
print("All components should be of the same length")
sys.exit(2)