[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 03/14] simpletrace: improve parsing of sys.argv; fix files
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v4 03/14] simpletrace: improve parsing of sys.argv; fix files never closed. |
Date: |
Wed, 20 Sep 2023 14:57:19 -0400 |
On Wed, Aug 23, 2023 at 10:54:18AM +0200, Mads Ynddal wrote:
> From: Mads Ynddal <m.ynddal@samsung.com>
>
> The arguments extracted from `sys.argv` named and unpacked to make it
> clear what the arguments are and what they're used for.
>
> The two input files were opened, but never explicitly closed. File usage
> changed to use `with` statement to take care of this. At the same time,
> ownership of the file-object is moved up to `run` function. Added option
> to process to support file-like objects.
>
> Signed-off-by: Mads Ynddal <m.ynddal@samsung.com>
> ---
> scripts/simpletrace.py | 50 ++++++++++++++++++++++++++++--------------
> 1 file changed, 34 insertions(+), 16 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v4 03/14] simpletrace: improve parsing of sys.argv; fix files never closed.,
Stefan Hajnoczi <=