removed error
This commit is contained in:
+2
-2
@@ -6,7 +6,7 @@ def main(argv):
|
|||||||
comp1 = ''
|
comp1 = ''
|
||||||
comp2 = ''
|
comp2 = ''
|
||||||
comp3 = ''
|
comp3 = ''
|
||||||
|
|
||||||
try:
|
try:
|
||||||
opts, args = getopt.getopt(argv,"hc1:c2:c3:",["comp1=","comp2=","comp3="])
|
opts, args = getopt.getopt(argv,"hc1:c2:c3:",["comp1=","comp2=","comp3="])
|
||||||
except getopt.GetoptError:
|
except getopt.GetoptError:
|
||||||
@@ -23,7 +23,7 @@ def main(argv):
|
|||||||
elif opt in ("-c3","--comp3"):
|
elif opt in ("-c3","--comp3"):
|
||||||
comp3 = str(arg)
|
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")
|
print("All components should be of the same length")
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user