summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-02-27 04:14:22 +0000
committerZac Medico <zmedico@gentoo.org>2009-02-27 04:14:22 +0000
commit6b0b00c982c0dc9c20c6581e4d62f0d98f6e8c8f (patch)
tree20e7b717b2ebae7c94512543ba9843bc53188859
parentaf99fbfe536f554b74a51dbe7a202887a361c743 (diff)
downloadportage-6b0b00c982c0dc9c20c6581e4d62f0d98f6e8c8f.tar.gz
portage-6b0b00c982c0dc9c20c6581e4d62f0d98f6e8c8f.tar.bz2
portage-6b0b00c982c0dc9c20c6581e4d62f0d98f6e8c8f.zip
Open the temp file in text mode for py3k compatibility.
svn path=/main/trunk/; revision=12727
-rw-r--r--pym/portage/tests/env/config/test_PackageUseFile.py3
1 files changed, 1 insertions, 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)