Binpkg: use io.open iso codecs.open
authorFabian Groffen <grobian@gentoo.org>
Tue, 26 Jul 2011 17:57:52 +0000 (19:57 +0200)
committerFabian Groffen <grobian@gentoo.org>
Tue, 26 Jul 2011 17:57:52 +0000 (19:57 +0200)
pym/_emerge/Binpkg.py

index 6c944e2cd021dd36045cdeccd317347ccdbf9446..77ac72003612ff6c9f92a50b093a2e70e9782f24 100644 (file)
@@ -276,7 +276,7 @@ class Binpkg(CompositeTask):
                        self._buildprefix = self._buildprefix.strip()
                # We want to install in "our" prefix, not the binary one
                self.settings["EPREFIX"] = EPREFIX
-               f = codecs.open(_unicode_encode(os.path.join(infloc, 'EPREFIX'),
+               f = io.open(_unicode_encode(os.path.join(infloc, 'EPREFIX'),
                        encoding=_encodings['fs'], errors='strict'),
                        mode='w', encoding=_encodings['content'], errors='strict')
                try: