Re: [PATCH v2 1/7] ia64: fix Python string escapes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Benjamin Gray <bgray@xxxxxxxxxxxxx>, Ard Biesheuvel <ardb@xxxxxxxxxx>
- Subject: Re: [PATCH v2 1/7] ia64: fix Python string escapes
- From: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
- Date: Tue, 12 Sep 2023 08:33:42 -0700
- Cc: linux-ia64@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-doc@xxxxxxxxxxxxxxx, llvm@xxxxxxxxxxxxxxx, linux-pm@xxxxxxxxxxxxxxx, bpf@xxxxxxxxxxxxxxx, linux-kselftest@xxxxxxxxxxxxxxx, Jonathan Corbet <corbet@xxxxxxx>, Ian Abbott <abbotti@xxxxxxxxx>, H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>, Nathan Chancellor <nathan@xxxxxxxxxx>, Tom Rix <trix@xxxxxxxxxx>, Jan Kiszka <jan.kiszka@xxxxxxxxxxx>, Kieran Bingham <kbingham@xxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>, Mark Rutland <mark.rutland@xxxxxxx>, Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>, Jiri Olsa <jolsa@xxxxxxxxxx>, Namhyung Kim <namhyung@xxxxxxxxxx>, Ian Rogers <irogers@xxxxxxxxxx>, Adrian Hunter <adrian.hunter@xxxxxxxxx>, linux-perf-users@xxxxxxxxxxxxxxx, Todd E Brandt <todd.e.brandt@xxxxxxxxxxxxxxx>, Andrii Nakryiko <andrii@xxxxxxxxxx>, Mykola Lysenko <mykolal@xxxxxx>, Shuah Khan <shuah@xxxxxxxxxx>
- In-reply-to: <20230912060801.95533-2-bgray@linux.ibm.com>
- References: <20230912060801.95533-1-bgray@linux.ibm.com> <20230912060801.95533-2-bgray@linux.ibm.com>
On Mon, Sep 11, 2023 at 11:08 PM Benjamin Gray <bgray@xxxxxxxxxxxxx> wrote:
>
> Python 3.6 introduced a DeprecationWarning for invalid escape sequences.
> This is upgraded to a SyntaxWarning in Python 3.12, and will eventually
> be a syntax error.
>
> Fix these now to get ahead of it before it's an error.
>
> Signed-off-by: Benjamin Gray <bgray@xxxxxxxxxxxxx>
> ---
> arch/ia64/scripts/unwcheck.py | 2 +-
Ard is proposing removing this script, along with the rest of the architecture:
https://lore.kernel.org/linux-arch/20230911163129.3777603-2-ardb@xxxxxxxxxx/
So this change can be dropped.
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/ia64/scripts/unwcheck.py b/arch/ia64/scripts/unwcheck.py
> index 9581742f0db2..adc24152d3b9 100644
> --- a/arch/ia64/scripts/unwcheck.py
> +++ b/arch/ia64/scripts/unwcheck.py
> @@ -21,7 +21,7 @@ if len(sys.argv) != 2:
>
> readelf = os.getenv("READELF", "readelf")
>
> -start_pattern = re.compile("<([^>]*)>: \[0x([0-9a-f]+)-0x([0-9a-f]+)\]")
> +start_pattern = re.compile(r"<([^>]*)>: \[0x([0-9a-f]+)-0x([0-9a-f]+)\]")
> rlen_pattern = re.compile(".*rlen=([0-9]+)")
>
> def check_func (func, slots, rlen_sum):
> --
> 2.41.0
>
--
Thanks,
~Nick Desaulniers
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]