summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-02-27 04:17:14 +0000
committerZac Medico <zmedico@gentoo.org>2009-02-27 04:17:14 +0000
commitf07ba1da70ae931ea827db66581e0036eeaa1fb0 (patch)
tree1f78e3ba0617fbe4a8890fdd1a0cbe7f7ec2eb02
parent6b0b00c982c0dc9c20c6581e4d62f0d98f6e8c8f (diff)
downloadportage-f07ba1da70ae931ea827db66581e0036eeaa1fb0.tar.gz
portage-f07ba1da70ae931ea827db66581e0036eeaa1fb0.tar.bz2
portage-f07ba1da70ae931ea827db66581e0036eeaa1fb0.zip
Open then temp file in text mode for py3k compatibility.
svn path=/main/trunk/; revision=12728
-rw-r--r--pym/portage/tests/env/config/test_PortageModulesFile.py2
1 files changed, 1 insertions, 1 deletions
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()