From 9bc7a15239662ec5568eb34089babbc79dc71265 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Thu, 8 Sep 2016 21:58:58 +0200
Subject: [PATCH] Use string mode to open tempfile for py3 compat

---
 bob/bio/base/test/test_config_file.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bob/bio/base/test/test_config_file.py b/bob/bio/base/test/test_config_file.py
index f6e7cc0f..39e6c347 100644
--- a/bob/bio/base/test/test_config_file.py
+++ b/bob/bio/base/test/test_config_file.py
@@ -13,7 +13,7 @@ from ..script.verify import parse_arguments
 def tmp_file(contents):
   '''Generates a temporary configuration file with the contents on the input'''
 
-  retval = tempfile.NamedTemporaryFile()
+  retval = tempfile.NamedTemporaryFile('w')
   retval.write('\n'.join(contents) + '\n')
   retval.flush()
   return retval
-- 
GitLab