From f2e0121125b28ecff78e5507884abfbbea0efce6 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 26 Jul 2011 19:57:52 +0200 Subject: [PATCH] Binpkg: use io.open iso codecs.open --- pym/_emerge/Binpkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/_emerge/Binpkg.py b/pym/_emerge/Binpkg.py index 6c944e2cd..77ac72003 100644 --- a/pym/_emerge/Binpkg.py +++ b/pym/_emerge/Binpkg.py @@ -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: -- 2.26.2