1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-05-14 11:13:47 +00:00

make: Auto-format Python files, and update existing

This patch adds extends `make fmt` to auto-format Python files using
`black`, and also runs it on the existing files.
This commit is contained in:
Alberto Bertogli
2026-04-06 19:31:58 +01:00
parent e78d5043e3
commit 953d380424
4 changed files with 11 additions and 8 deletions

View File

@@ -38,8 +38,7 @@ def getCiphers():
ciphers = getCiphers()
out = open(sys.argv[1], "w")
out.write(
"""\
out.write("""\
package tlsconst
// AUTOGENERATED - DO NOT EDIT
@@ -47,8 +46,7 @@ package tlsconst
// This file was autogenerated by generate-ciphers.py.
var cipherSuiteName = map[uint16]string{
"""
)
""")
for ver, desc in ciphers:
out.write('\t%s: "%s",\n' % (ver, desc))