13 for l
in difflib.unified_diff(
14 a.read().splitlines(),
23 for f
in dc.left_only:
24 diff.append(
"Only in {}: {}".format(old, f))
25 for f
in dc.right_only:
26 diff.append(
"Only in {}: {}".format(new, f))
27 for f
in dc.diff_files:
28 r =
getdiff(os.path.join(old, f), os.path.join(new, f))
30 for dn, dc
in list(dc.subdirs.items()):
31 r =
dc_getdiff(dc, os.path.join(old, dn), os.path.join(new, dn))
37 dc = filecmp.dircmp(old, new)
43 for l
in dcdiff(sys.argv[1], sys.argv[2]):
47if __name__ ==
'__main__':
static int list
Set if we should print a list of currently running services.
def dc_getdiff(dc, old, new)