Gentoo Archives: gentoo-portage-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Sebastian Luther <SebastianLuther@×××.de>
Subject: Re: [gentoo-portage-dev] [PATCH] egencache: --write-timestamp to create metadata/timestamp.chk
Date: Wed, 27 Nov 2013 21:45:44
Message-Id: 201311271645.41056.vapier@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] egencache: --write-timestamp to create metadata/timestamp.chk by Sebastian Luther
1 On Wednesday 27 November 2013 16:41:12 Sebastian Luther wrote:
2 > Am 27.11.2013 22:20, schrieb Mike Frysinger:
3 > > use a with block, and merge those writes
4 > >
5 > > with open(timestamp_path, 'w') as f:
6 > > f.write(time.strftime('%a, %d
7 > > %b %Y %H:%M:%S +0000\n', time.gmtime()))
8 >
9 > What if the f.write raises an exception?
10
11 then catch it ? i don't understand the question.
12 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature