def fqcn_to_path(fqcn):
return os.path.join(classes_dir, fqcn.replace(b".", os.sep) + b".class")
for src, fqcns in ext_deps.items():
transformed_ext_deps[src] = [fqcn_to_path(fqcn) for fqcn in fqcns]
ret = defaultdict(list)
for d in [filtered_bin_deps, src_deps, transformed_ext_deps]:
for src, deps in d.items():
After Change
bin_deps = self._find_repeated_at_header(infile, b"library dependencies")
// Class dependencies: classname -> classname.
ext_deps = []
for ext_dep_header in (b"member reference internal dependencies",
b"member reference external dependencies"):
ext_deps.append(self._find_repeated_at_header(infile, ext_dep_header))