billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=a75cce1e0e470cbe408f726920290db032655e10
commit a75cce1e0e470cbe408f726920290db032655e10 Author: Boris Faure <bill...@gmail.com> Date: Tue Nov 24 22:21:33 2020 +0100 gen_faint: correct truncate It seems it's not that one: https://docs.python.org/3/library/io.html?highlight=truncate#io.IOBase.truncate --- data/colorschemes/gen_faint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/colorschemes/gen_faint.py b/data/colorschemes/gen_faint.py index 37a4b35..b01e9d5 100755 --- a/data/colorschemes/gen_faint.py +++ b/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) --