diff options
| author | svidyuk <[email protected]> | 2022-02-10 16:47:12 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:12 +0300 |
| commit | 287d7d8c4ffc811d1e51c756ecfb13b78f4ee62d (patch) | |
| tree | 339adc63bce23800021202ae4a8328a843dc447a /build/scripts/java_pack_to_file.py | |
| parent | e23df0602fedd83374b43b6137a296baa2aad3f6 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'build/scripts/java_pack_to_file.py')
| -rw-r--r-- | build/scripts/java_pack_to_file.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/build/scripts/java_pack_to_file.py b/build/scripts/java_pack_to_file.py index 28273b8baf2..8d2aeb93fda 100644 --- a/build/scripts/java_pack_to_file.py +++ b/build/scripts/java_pack_to_file.py @@ -20,16 +20,16 @@ def get_package_name(filename): return '' -def write_coverage_sources(output, srcroot, files): - with open(output, 'w') as afile: - for filename in files: - pname = get_package_name(os.path.join(srcroot, filename)) - afile.write(os.path.join(pname, os.path.basename(filename)) + ':' + filename + '\n') - - +def write_coverage_sources(output, srcroot, files): + with open(output, 'w') as afile: + for filename in files: + pname = get_package_name(os.path.join(srcroot, filename)) + afile.write(os.path.join(pname, os.path.basename(filename)) + ':' + filename + '\n') + + def main(): opts, files = parse_args() - write_coverage_sources(opts.output, opts.source_root, files) + write_coverage_sources(opts.output, opts.source_root, files) if __name__ == '__main__': |
