From: Zac Medico Date: Wed, 11 Mar 2009 06:28:36 +0000 (-0000) Subject: Open then temp file in text mode for py3k compatibility. (trunk r12728) X-Git-Tag: v2.1.6.8~99 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6e24129a3dda10fe300c6f3631ed5bc31e8fb601;p=portage.git Open then temp file in text mode for py3k compatibility. (trunk r12728) svn path=/main/branches/2.1.6/; revision=12978 --- 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()