From f07ba1da70ae931ea827db66581e0036eeaa1fb0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 27 Feb 2009 04:17:14 +0000 Subject: [PATCH] Open then temp file in text mode for py3k compatibility. svn path=/main/trunk/; revision=12728 --- 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