Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, Florian Schmaus <flo@×××××××××.eu>
Subject: Re: [gentoo-portage-dev] [PATCH] Use atomic_ofstream as Context Manager i.e., with-statement contexts
Date: Wed, 17 Mar 2021 03:07:24
Message-Id: 3d45f91e-d5d5-42f5-4362-3d38bdde5de7@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] Use atomic_ofstream as Context Manager i.e., with-statement contexts by Florian Schmaus
1 On 3/8/21 11:25 PM, Florian Schmaus wrote:
2 > With [1: e93e6d65fa1c] atomic_ofstream became a Context Manager. This
3 > commit transforms three further call sites of atomic_ofstream() to use
4 > with-statement contexts for easier readability and increased
5 > robustness against resource leaks.
6 >
7 > 1: e93e6d65fa1ca75f676a227f7918f8b6d747425c
8 > Make atomic_ofstream a Context Manager
9 >
10 > Signed-off-by: Florian Schmaus <flo@×××××××××.eu>
11 > ---
12 > lib/_emerge/BlockerCache.py | 6 +++---
13 > lib/portage/dbapi/_VdbMetadataDelta.py | 11 +++++------
14 > lib/portage/dbapi/vartree.py | 6 +++---
15
16 Merged. Thank you!
17
18 https://gitweb.gentoo.org/proj/portage.git/commit/?id=8879cef9006d2277453aaee407c234a2d1bc47ba
19 --
20 Thanks,
21 Zac

Attachments

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