Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.make_parsing_assertions(
self.parse_bytes(dest), source, phased, build, build_detected, snps_df
)
# remove .gz extension
shutil.move(dest, dest[:-3])
self.make_parsing_assertions(
self.parse_file(dest[:-3]),
source,
phased,
build,
build_detected,
snps_df,
)
dest = os.path.join(tmpdir, "{}.zip".format(base))
zip_file(file, dest, base)
self.make_parsing_assertions(
self.parse_file(dest), source, phased, build, build_detected, snps_df
)
self.make_parsing_assertions(
self.parse_bytes(dest), source, phased, build, build_detected, snps_df
)
# remove .zip extension
shutil.move(dest, dest[:-4])
self.make_parsing_assertions(
self.parse_file(dest[:-4]),
source,
phased,
build,
build_detected,
snps_df,
)