Skip to content

Commit

Permalink
Strip empty lines from ExtraCode includes to avoid some warnings duri…
Browse files Browse the repository at this point in the history
…ng code generation (#670)

* Make sure to remove any spurious whitespace

* Remove debug print output
  • Loading branch information
tmadlener authored Sep 10, 2024
1 parent cf147a0 commit d04229c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/podio_gen/cpp_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ def _invert_interfaces(self):
"""
types_in_interfaces = defaultdict(list)
for name, interface in self.datamodel.interfaces.items():
print(f"preprocessing interface {name}")
for if_type in interface["Types"]:
types_in_interfaces[if_type.full_type].append(name)

Expand Down Expand Up @@ -605,7 +604,7 @@ def _sort_includes(self, includes):
podio_includes = []
stl_includes = []
upstream_includes = []
for include in (inc for inc in includes if inc):
for include in (inc.strip() for inc in includes if inc.strip()):
if self.package_name in include:
package_includes.append(include)
elif "podio" in include:
Expand Down

0 comments on commit d04229c

Please sign in to comment.