mirror of https://gitlab.com/ita1024/waf.git
Python 2 fix
This commit is contained in:
parent
c916febaf7
commit
8e68aa4ade
|
@ -303,7 +303,7 @@ def rm_blank_lines(txt):
|
|||
BOM = '\xef\xbb\xbf'
|
||||
try:
|
||||
BOM = bytes(BOM, 'iso8859-1') # python 3
|
||||
except NameError:
|
||||
except (TypeError, NameError):
|
||||
pass
|
||||
|
||||
def stealth_write(self, data, flags='wb'):
|
||||
|
|
Loading…
Reference in New Issue