"""
bug = nodes[bug_id]
- print("bug #%5d %s budget %7s excltasks %7s" % \
- (bug.bug.id, ' ' * (indent*4),
- str(bug.budget_including_subtasks),
- str(bug.budget_excluding_subtasks)))
+ print("bug #%5d %s budget %7s excltasks %7s" %
+ (bug.bug.id, ' ' * (indent*4),
+ str(bug.budget_including_subtasks),
+ str(bug.budget_excluding_subtasks)))
#print (repr(bug))
for child in bug.immediate_children:
if (str(child.budget_including_subtasks) == "0" and
- str(child.budget_excluding_subtasks) == "0"):
+ str(child.budget_excluding_subtasks) == "0"):
continue
print_budget_then_children(indent+1, nodes, child.bug.id)
f"{summary.total_submitted} paid: {summary.total_paid}")
not_submitted = summary.get_not_submitted()
if not_submitted:
- print ("not submitted", not_submitted)
+ print("not submitted", not_submitted)
# and one to display people
for person in budget_graph.milestone_people[milestone]:
milestone.canonical_bug_id)
print()
+
if __name__ == "__main__":
main()
logging.basicConfig(level=logging.INFO)
+
def main():
parser = argparse.ArgumentParser(
description="Check for errors in "
buglist = bz.getbugs(bugs)
logging.info("got bugs %s" % args.bug)
for bug in buglist:
- print ("payees", bug.id)
- print (" "+"\n ".join(bug.cf_payees_list.split('\n')))
+ print("payees", bug.id)
+ print(" "+"\n ".join(bug.cf_payees_list.split('\n')))
parsed_toml = toml.loads(bug.cf_payees_list)
#update = bz.build_update(cf_payees_list=ttxt)
bz.update_bugs([bug.id], {'cf_payees_list': ttxt})
+
if __name__ == "__main__":
main()