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:
parent
eb0e31fc05
commit
c788380af6
4
table.py
4
table.py
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user