From e3ef23faebf39fb828479bd364fe0647181d7fb6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 06:28:19 +0000 Subject: [PATCH] Open the temp file in text mode for py3k compatibility. (trunk r12727) svn path=/main/branches/2.1.6/; revision=12977 --- pym/portage/tests/env/config/test_PackageUseFile.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pym/portage/tests/env/config/test_PackageUseFile.py b/pym/portage/tests/env/config/test_PackageUseFile.py index f6eb38846..aa18364a0 100644 --- a/pym/portage/tests/env/config/test_PackageUseFile.py +++ b/pym/portage/tests/env/config/test_PackageUseFile.py @@ -30,10 +30,9 @@ class PackageUseFileTestCase(TestCase): def BuildFile(self): fd, self.fname = mkstemp() - f = os.fdopen(fd, 'wb') + f = os.fdopen(fd, 'w') f.write("%s %s" % (self.cpv, ' '.join(self.useflags))) f.close() def NukeFile(self): - import os os.unlink(self.fname) -- 2.26.2