From 6e24129a3dda10fe300c6f3631ed5bc31e8fb601 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 06:28:36 +0000 Subject: [PATCH] Open then temp file in text mode for py3k compatibility. (trunk r12728) svn path=/main/branches/2.1.6/; revision=12978 --- pym/portage/tests/env/config/test_PortageModulesFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/tests/env/config/test_PortageModulesFile.py b/pym/portage/tests/env/config/test_PortageModulesFile.py index e4f9e4252..d8938d8c5 100644 --- a/pym/portage/tests/env/config/test_PortageModulesFile.py +++ b/pym/portage/tests/env/config/test_PortageModulesFile.py @@ -29,7 +29,7 @@ class PortageModulesFileTestCase(TestCase): def BuildFile(self): fd, self.fname = mkstemp() - f = os.fdopen(fd, 'wb') + f = os.fdopen(fd, 'w') for k, v in self.items.iteritems(): f.write('%s=%s\n' % (k,v)) f.close() -- 2.26.2