jw-pkg/src/python
Jan Lindemann 772512aee0
FileContext.open() / close(): Only call wrapped once

FileContext's _open() and _close() are called everytime their wrapper is called, which tasks the caller with keeping track of whether they were already called or not. Be a little easier on the caller, keep track in an open count, and call _open() only once for multiple calls to open(), and close() likewise. The caller still needs to make sure the number of open() and close() calls matches.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-04-24 16:53:55 +02:00
..
jw FileContext.open() / close(): Only call wrapped once 2026-04-24 16:53:55 +02:00
Makefile projects.py: Move bulk of code into module 2025-11-15 11:08:52 +01:00