From: | Sebastian Luther <SebastianLuther@×××.de> | ||
---|---|---|---|
To: | gentoo-portage-dev@l.g.o | ||
Subject: | Re: [gentoo-portage-dev] [PATCH 1/2] ResolverPlayground: Write layout.conf if needed | ||
Date: | Mon, 06 Jan 2014 21:49:39 | ||
Message-Id: | 52CB24ED.5000302@gmx.de | ||
In Reply to: | Re: [gentoo-portage-dev] [PATCH 1/2] ResolverPlayground: Write layout.conf if needed by Mike Frysinger |
1 | Am 06.01.2014 22:38, schrieb Mike Frysinger: |
2 | > On Monday 06 January 2014 16:04:16 SebastianLuther@×××.de wrote: |
3 | >> + f = open(layout_conf_path, "w") + f.write("masters = |
4 | >> test_repo\n") + f.close() |
5 | > |
6 | > please use "with" in your code with open(layout_conf_path, 'w') as |
7 | > f: f.write('masters = test_repo\n') -mike |
8 | > |
9 | Arfrever pointed this out on IRC and I already send a new version of |
10 | this patch that uses "with". |