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: