Skip to content

Commit

Permalink
Minor code formatting changes using Black
Browse files Browse the repository at this point in the history
Replace single by double quotes to keep consistency.
  • Loading branch information
pabluk authored and alecthomas committed Nov 12, 2020
1 parent eb0e31f commit c788380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions table.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from collections import defaultdict
from subprocess import check_output

lines = check_output(["go", "run", "./cmd/chroma/main.go", "--list"]).decode('utf-8').splitlines()
lines = check_output(["go", "run", "./cmd/chroma/main.go", "--list"]).decode("utf-8").splitlines()
lines = [line.strip() for line in lines if line.startswith(" ") and not line.startswith(" ")]
lines = sorted(lines, key=lambda l: l.lower())

Expand All @@ -12,4 +12,4 @@
table[line[0].upper()].append(line)

for key, value in table.items():
print("{} | {}".format(key, ', '.join(value)))
print("{} | {}".format(key, ", ".join(value)))

0 comments on commit c788380

Please sign in to comment.