2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-21 17:35:55 +01:00

Ensure signed waf files can be created using Python3

This commit is contained in:
Thomas Nagy 2022-05-22 14:43:41 +01:00
parent 2a1eeba691
commit 7b912a0439

View File

@ -396,9 +396,9 @@ def create_waf(self, *k, **kw):
sig = Utils.readf('waf.asc')
sig = sig.replace('\r', '').replace('\n', '\\n')
f.write('#')
f.write(sig)
f.write('\n')
f.write(to_bytes('#'))
f.write(to_bytes(sig))
f.write(to_bytes('\n'))
os.remove('waf.asc')