From: Mike Frysinger <vapier@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Cc: Sebastian Luther <SebastianLuther@gmx.de>
Subject: Re: [gentoo-portage-dev] [PATCH] egencache: --write-timestamp to create metadata/timestamp.chk
Date: Wed, 27 Nov 2013 16:45:39 -0500 [thread overview]
Message-ID: <201311271645.41056.vapier@gentoo.org> (raw)
In-Reply-To: <529666F8.1040208@gmx.de>
[-- Attachment #1: Type: Text/Plain, Size: 402 bytes --]
On Wednesday 27 November 2013 16:41:12 Sebastian Luther wrote:
> Am 27.11.2013 22:20, schrieb Mike Frysinger:
> > use a with block, and merge those writes
> >
> > with open(timestamp_path, 'w') as f:
> > f.write(time.strftime('%a, %d
> > %b %Y %H:%M:%S +0000\n', time.gmtime()))
>
> What if the f.write raises an exception?
then catch it ? i don't understand the question.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-11-27 21:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-27 10:31 [gentoo-portage-dev] [PATCH] egencache: --write-timestamp to create metadata/timestamp.chk SebastianLuther
2013-11-27 21:20 ` Mike Frysinger
2013-11-27 21:41 ` Sebastian Luther
2013-11-27 21:45 ` Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-11-29 13:36 SebastianLuther
2013-11-29 14:17 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201311271645.41056.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=SebastianLuther@gmx.de \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox