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
1 changed files with 3 additions and 3 deletions

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