From 6e10b5789dc2c98e42ed0878897c96ed081248e2 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 16 Apr 2021 17:54:45 -0700 Subject: [PATCH] Removed redundant license from port_def in amalgmation. --- tools/amalgamate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/amalgamate.py b/tools/amalgamate.py index 724dac466f..103b11c351 100755 --- a/tools/amalgamate.py +++ b/tools/amalgamate.py @@ -53,8 +53,8 @@ class Amalgamator: self.include_paths.append(path) def finish(self): - self.output_c.write(open("upb/port_undef.inc").read()) - self.output_h.write(open("upb/port_undef.inc").read()) + self._add_header("upb/port_undef.inc") + self.add_src("upb/port_undef.inc") def _process_file(self, infile_name, outfile): file = None