From: Zac Medico Date: Fri, 27 Feb 2009 04:17:14 +0000 (-0000) Subject: Open then temp file in text mode for py3k compatibility. X-Git-Tag: v2.2_rc24~87 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f07ba1da70ae931ea827db66581e0036eeaa1fb0;p=portage.git Open then temp file in text mode for py3k compatibility. svn path=/main/trunk/; revision=12728 --- 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()