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

Remove waf.asc after producing a signed waf file

This commit is contained in:
Thomas Nagy 2016-03-08 19:16:49 +01:00
parent 42622a6e52
commit b08125520f
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

11
wscript
View File

@ -21,14 +21,10 @@ zip_types = ['bz2', 'gz', 'xz']
PRELUDE = ''
#from tokenize import *
import tokenize
import os, sys, re, io, optparse
from waflib import Utils, Options, Logs, Scripting
import os, sys, re, io, optparse, tokenize
from hashlib import md5
from waflib import Utils, Options, Logs, Scripting
from waflib import Configure
Configure.autoconfig = 1
@ -359,7 +355,7 @@ def create_waf(self, *k, **kw):
s = chr(i) + chr(j)
if -1 == kd.find(s.encode()):
return (kd.replace(ch.encode(), s.encode()), s)
raise
raise ValueError('Could not find a proper encoding')
# The reverse order prevents collisions
(cnt, C3) = find_unused(cnt, '\x00')
@ -389,6 +385,7 @@ def create_waf(self, *k, **kw):
f.write('#')
f.write(sig)
f.write('\n')
os.remove('waf.asc')
finally:
f.close()