mirror of
https://github.com/servo/servo.git
synced 2025-09-21 20:30:10 +01:00
Fix tidiness errors for Python3 compatibility across whole repo
This commit is contained in:
parent
9d04f231f4
commit
7b5fabe855
10 changed files with 51 additions and 41 deletions
|
@ -54,9 +54,9 @@ for key in keys:
|
|||
value1 = data1.get(key)
|
||||
value2 = data2.get(key)
|
||||
if value1 and not(value2):
|
||||
print ("{}Test {}: missing from {}.{}".format(WARNING, key, args.file2, END))
|
||||
print("{}Test {}: missing from {}.{}".format(WARNING, key, args.file2, END))
|
||||
elif value2 and not(value1):
|
||||
print ("{}Test {}: missing from {}.{}".format(WARNING, key, args.file1, END))
|
||||
print("{}Test {}: missing from {}.{}".format(WARNING, key, args.file1, END))
|
||||
elif value1 and value2:
|
||||
total1 += value1
|
||||
total2 += value2
|
||||
|
|
|
@ -69,7 +69,7 @@ def transform_report_for_test(report):
|
|||
while remaining:
|
||||
(name, value) = remaining.pop()
|
||||
transformed[name] = '%s %s' % (value['amount'], value['unit'])
|
||||
remaining += map(lambda (k, v): (name + '/' + k, v), list(value['children'].items()))
|
||||
remaining += map(lambda k_v: (name + '/' + k_v[0], k_v[1]), list(value['children'].items()))
|
||||
return transformed
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue