From: Michael Tremer Date: Thu, 5 Dec 2019 15:37:26 +0000 (+0000) Subject: location-exporter: Fix syntax errors for nftables export X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a28d854c98f836950938e0daa02229c04b138ade;p=people%2Fsennis%2Flibloc.git location-exporter: Fix syntax errors for nftables export Signed-off-by: Michael Tremer --- diff --git a/src/python/location-exporter.in b/src/python/location-exporter.in index 983a7e8..28f761a 100644 --- a/src/python/location-exporter.in +++ b/src/python/location-exporter.in @@ -140,11 +140,11 @@ class NftablesOutputWriter(OutputWriter): suffix = "set" def _write_header(self, f): - h = "define %s = {" % self.name + h = "define %s = {\n" % self.name f.write(h.encode("ascii")) - def _write_footer(self): + def _write_footer(self, f): f.write(b"}") def write(self, network):