From: Zac Medico Date: Wed, 25 May 2011 04:52:40 +0000 (-0700) Subject: atomic_ofstream: suppress redundant open error X-Git-Tag: v2.2.0_alpha36~6 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=346c2b767c4e129bc1c114ed6e455c9a0737d39d;p=portage.git atomic_ofstream: suppress redundant open error --- diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index c28843475..3cf6c5bab 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -1125,9 +1125,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())