1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-05 13:05:18 +02:00

Minor code formatting changes using Black

Replace single by double quotes to keep consistency.
This commit is contained in:
Pablo SEMINARIO 2020-11-11 14:29:20 +01:00 committed by Alec Thomas
parent eb0e31fc05
commit c788380af6

View File

@ -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())
@ -12,4 +12,4 @@ for line in lines:
table[line[0].upper()].append(line)
for key, value in table.items():
print("{} | {}".format(key, ', '.join(value)))
print("{} | {}".format(key, ", ".join(value)))