From 7fff387a4f3b96b64f209a80421d8f2bc60fea95 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 16 Sep 2013 18:47:59 +0200 Subject: [PATCH] portage.util.atomic_ofstream.__init__(): Fix compatibility with Python <2.6.5. Reported by Stephen Klimaszewski. --- pym/portage/util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2