summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorStefan Zimmermann <zimmermann.code@gmail.com>2014-03-31 22:37:42 +0000
committerStefan Zimmermann <zimmermann.code@gmail.com>2014-03-31 22:37:42 +0000
commitecd4e8eba2e108d8dae0ba23fb16cd9ba4e8b9bf (patch)
tree91a57be2fd32f0fd6f7cfc7735686402993d6336 /SConstruct
parenta14bd64385bdec1baf40928e82cf86b8a16ad7ba (diff)
downloadscons-ecd4e8eba2e108d8dae0ba23fb16cd9ba4e8b9bf.tar.gz
SConstruct: More bytes/str fixes.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 3 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index f1f1fa37..a18de579 100644
--- a/SConstruct
+++ b/SConstruct
@@ -418,7 +418,8 @@ def soelim(target, source, env):
def soscan(node, env, path):
c = node.get_text_contents()
- return re.compile(r"^[\.']so\s+(\S+)", re.M).findall(c)
+ # Node contents are bytes ==> br"..."
+ return re.compile(br"^[\.']so\s+(\S+)", re.M).findall(c)
soelimbuilder = Builder(action = Action(soelim),
source_scanner = Scanner(soscan))
@@ -828,7 +829,7 @@ for p in [ scons ]:
def write_src_files(target, source, **kw):
global src_files
src_files.sort()
- f = open(str(target[0]), 'wb')
+ f = open(str(target[0]), 'w')
for file in src_files:
f.write(file + "\n")
f.close()