gen_faint: correct truncate

It seems it's not that one:
https://docs.python.org/3/library/io.html?highlight=truncate#io.IOBase.truncate
terminology-1.9
Boris Faure 3 years ago
parent ec1f404d81
commit a75cce1e0e
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
  1. 3
      data/colorschemes/gen_faint.py

@ -69,7 +69,8 @@ def main():
blend_color(cfg, f, 'Bright', 'BrightFaint', 'inverse_fg')
blend_color(cfg, f, 'Bright', 'BrightFaint', 'inverse_bg')
args.file.truncate(size=0)
args.file.seek(0)
args.file.truncate()
cfg.write(args.file)

Loading…
Cancel
Save