Skip to content

Commit

Permalink
Run new black
Browse files Browse the repository at this point in the history
In release 21.4b0: psf/black#1740
  • Loading branch information
GeoWill committed Oct 27, 2021
1 parent 77462ea commit 831159a
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -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(
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 831159a

Please sign in to comment.