From af02772f2235bb37858f563f34ecf0132b89c38e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 24 May 2011 21:52:40 -0700 Subject: [PATCH] atomic_ofstream: suppress redundant open error --- pym/portage/util/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index 43ff98e30..7d071e42e 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -1090,9 +1090,9 @@ class atomic_ofstream(ObjectProxy): except IOError as e: if canonical_path == filename: raise - writemsg(_("!!! Failed to open file: '%s'\n") % tmp_name, - noiselevel=-1) - writemsg("!!! %s\n" % str(e), noiselevel=-1) + # Ignore this error, since it's irrelevant + # and the below open call will produce a + # new error if necessary. object.__setattr__(self, '_real_name', filename) tmp_name = "%s.%i" % (filename, os.getpid()) -- 2.26.2