portage.util.atomic_ofstream.__init__(): Fix compatibility with Python <2.6.5.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Mon, 16 Sep 2013 16:47:59 +0000 (18:47 +0200)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Mon, 16 Sep 2013 16:47:59 +0000 (18:47 +0200)
Reported by Stephen Klimaszewski.

pym/portage/util/__init__.py

index 264e093bc750abbc2aafd98a7d73f219bfbc7aaf..8f311bf3b77e6252159b408aa3d50e328de39b0d 100644 (file)
@@ -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: