From: Fabian Groffen Date: Tue, 26 Jul 2011 17:57:52 +0000 (+0200) Subject: Binpkg: use io.open iso codecs.open X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f2e0121125b28ecff78e5507884abfbbea0efce6;p=portage.git Binpkg: use io.open iso codecs.open --- 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: