diff --git a/scripts/combo-layer b/scripts/combo-layer index b90bfc8800..4a210fba63 100755 --- a/scripts/combo-layer +++ b/scripts/combo-layer @@ -329,7 +329,7 @@ def action_init(conf, args): # one. The commit should be in both repos with # the same tree, but better check here. tree = runcmd('git show -s --pretty=format:%%T %s' % rev).strip() - with tempfile.NamedTemporaryFile() as editor: + with tempfile.NamedTemporaryFile(mode='wt') as editor: editor.write('''cat >$1 <