From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 16 Sep 2013 16:47:59 +0000 (+0200) Subject: portage.util.atomic_ofstream.__init__(): Fix compatibility with Python <2.6.5. X-Git-Tag: v2.2.7~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7fff387a4f3b96b64f209a80421d8f2bc60fea95;p=portage.git portage.util.atomic_ofstream.__init__(): Fix compatibility with Python <2.6.5. Reported by Stephen Klimaszewski. --- diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index 264e093bc..8f311bf3b 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -1248,7 +1248,7 @@ class atomic_ofstream(ObjectProxy): object.__setattr__(self, '_file', open_func(_unicode_encode(tmp_name, encoding=_encodings['fs'], errors='strict'), - mode=mode, **kargs)) + mode=mode, **portage._native_kwargs(kargs))) return except IOError as e: if canonical_path == filename: