From 982b2943e29fdf2b5710fd75b91c251ba75947ee Mon Sep 17 00:00:00 2001 From: GeoWill Date: Wed, 27 Oct 2021 16:41:17 +0100 Subject: [PATCH] Run new black In release 21.4b0: https://github.com/psf/black/pull/1740 --- .../apps/api/management/commands/export_boundaries.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/every_election/apps/api/management/commands/export_boundaries.py b/every_election/apps/api/management/commands/export_boundaries.py index a58567b9..091ea133 100644 --- a/every_election/apps/api/management/commands/export_boundaries.py +++ b/every_election/apps/api/management/commands/export_boundaries.py @@ -84,13 +84,13 @@ def handle(self, *args, **options): self.topojson_simplify(tj_path, tj_simple_path) def topojson_convert(self, source, dest): - " Convert GeoJSON to TopoJSON by calling out to the topojson package " + "Convert GeoJSON to TopoJSON by calling out to the topojson package" subprocess.check_call( [os.path.join(TOPOJSON_BIN, "geo2topo"), "-o", dest, source] ) def topojson_simplify(self, source, dest): - " Simplify a TopoJSON file " + "Simplify a TopoJSON file" # The toposimplify settings here were arrived at by trial and error to keep the # simplified 2018-05-03 local elections topojson below 2.5MB. subprocess.check_call( @@ -106,7 +106,7 @@ def topojson_simplify(self, source, dest): ) def export_election(self, parent): - " Return GeoJSON containing all leaf elections below this parent " + "Return GeoJSON containing all leaf elections below this parent" features = [] elections = self.get_ballots(parent) for election in elections: @@ -134,7 +134,7 @@ def export_election(self, parent): return geojson.FeatureCollection(features, election_group=parent.election_id) def get_ballots(self, group): - " Return the ballots for a group of elections. " + "Return the ballots for a group of elections." to_visit = [group] leaf_nodes = [] while len(to_visit) > 0: