2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 19:30:04 +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 15e04d7a7d
commit c140c3f538
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

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')