6 def list_diff(self,aList1, aList2, string1, string2):
7 "Searches for differences between two modules of the same kind" 8 for i
in range(2,len(aList1)):
9 for j
in range(2,len(aList2)):
10 if (i==j)
and (aList1[i]!=aList2[j]):
11 if aList1[i][:(aList1[i].
index(
'=')+1)] == aList2[j][:(aList2[j].
index(
'=')+1)]:
13 print aList1[i][2:aList1[i].
index(
'=')+1] + aList1[i][aList1[i].
index(
'=')+1:]+
' ['+ string1+
']' 14 print len(aList1[i][2:aList1[i].
index(
'=')+1])*
' '+aList2[j][aList2[j].
index(
'=')+1:]+
' ['+string2+
']' 19 "Searches for modules which are in both the files but whose parameters are setted at different values" 22 print '\nList of modules present in both the files with different parameter values\n' 23 for i
in module1.keys():
24 for j
in module2.keys():
25 if (i==j)
and (module1[i]!=module2[j]):
26 print 'Module: '+
'"'+i+
'"' 29 d.firstvalue=module1[i]
30 d.secondvalue=module2[j]
31 self.
list_diff(d.firstvalue,d.secondvalue, string1, string2)
39 "Searches for modules present only in one of the two files" 41 for i
in module1.keys():
44 print '\nModule present only in the '+string+
' file:'+
'\n' 46 print 'Module: '+
'"'+i+
'"' 48 for k
in range(1,len(module1[i])):
def list_diff(self, aList1, aList2, string1, string2)
def onefilemodules(self, module1, module2, string)
def module_diff(self, module1, module2, string1, string2)