Re: [PATCH v2 06/12] python: upgrade to python3.9+ syntax

2025-06-25 Thread Markus Armbruster
John Snow writes: > On Tue, Jun 24, 2025 at 3:34 AM Markus Armbruster wrote: > >> John Snow writes: >> >> > This patch is fully automated, using pymagic, isort and autoflake. >> > >> > Create a script named pymagic.sh: >> > >> > = >> > >> > pyupgrade --exit-zero-even-if-

Re: [PATCH v2 06/12] python: upgrade to python3.9+ syntax

2025-06-25 Thread John Snow
On Tue, Jun 24, 2025 at 3:34 AM Markus Armbruster wrote: > John Snow writes: > > > This patch is fully automated, using pymagic, isort and autoflake. > > > > Create a script named pymagic.sh: > > > > = > > > > pyupgrade --exit-zero-even-if-changed --keep-percent-format \

Re: [PATCH v2 06/12] python: upgrade to python3.9+ syntax

2025-06-24 Thread Markus Armbruster
John Snow writes: > This patch is fully automated, using pymagic, isort and autoflake. > > Create a script named pymagic.sh: > > = > > pyupgrade --exit-zero-even-if-changed --keep-percent-format \ > --py39-plus "$@" > > autoflake -i "$@" > > isort --settings-file

Re: [PATCH v2 06/12] python: upgrade to python3.9+ syntax

2025-06-17 Thread John Snow
On Tue, Jun 17, 2025, 5:16 AM Mads Ynddal wrote: > > > diff --git a/scripts/simpletrace.py b/scripts/simpletrace.py > > index cef81b0707f..a013e4402de 100755 > > --- a/scripts/simpletrace.py > > +++ b/scripts/simpletrace.py > > @@ -9,13 +9,15 @@ > > # > > # For help see docs/devel/tracing.rst > >

Re: [PATCH v2 06/12] python: upgrade to python3.9+ syntax

2025-06-17 Thread Mads Ynddal
> diff --git a/scripts/simpletrace.py b/scripts/simpletrace.py > index cef81b0707f..a013e4402de 100755 > --- a/scripts/simpletrace.py > +++ b/scripts/simpletrace.py > @@ -9,13 +9,15 @@ > # > # For help see docs/devel/tracing.rst > > -import sys > -import struct > import inspect > +import struct