forked from enlightenment/terminology
gen_faint: correct truncate
It seems it's not that one: https://docs.python.org/3/library/io.html?highlight=truncate#io.IOBase.truncate
This commit is contained in:
parent
ec1f404d81
commit
a75cce1e0e
|
@ -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…
Reference in New Issue