Re: [PATCH v2 1/7] ia64: fix Python string escapes
Nick Desaulniers <[email protected]>
| Newsgroups | gmane.linux.documentation,gmane.linux.ports.ia64,gmane.linux.kernel,gmane.linux.power-management.general,gmane.linux.kernel.bpf,gmane.linux.kernel.perf.user |
|---|---|
| Message-ID | <CAKwvOdkP1uwU0Cq9541zf309tudfFdbu-10Xo3h+g07-k=Fg4A@mail.gmail.com> |
On Mon, Sep 11, 2023 at 11:08 PM Benjamin Gray <[email protected]> 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 <[email protected]> > --- > 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/[email protected]/ 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