From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: "José Roberto de Souza" <jose.souza@intel.com>
Cc: <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t v2 1/2] i915/perf: Fix invalid escape warnings
Date: Mon, 04 Nov 2024 12:56:53 -0800 [thread overview]
Message-ID: <85ttcmyay2.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20241104205201.175541-1-jose.souza@intel.com>
On Mon, 04 Nov 2024 12:51:59 -0800, José Roberto de Souza wrote:
>
> Fix this warnings:
> SyntaxWarning: invalid escape sequence '\
>
> A similar change was done in the Xe KMD script in commit
> 287917575616 ("xe/oa: Fix invalid escape warnings").
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
> Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
> ---
> lib/i915/perf-configs/mdapi-xml-convert.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/i915/perf-configs/mdapi-xml-convert.py b/lib/i915/perf-configs/mdapi-xml-convert.py
> index ba0b7ba473..db093b60f6 100755
> --- a/lib/i915/perf-configs/mdapi-xml-convert.py
> +++ b/lib/i915/perf-configs/mdapi-xml-convert.py
> @@ -222,7 +222,7 @@ counter_blacklist = {
>
> def underscore(name):
> s = re.sub('MHz', 'Mhz', name)
> - s = re.sub('\.', '_', s)
> + s = re.sub(r'\.', '_', s)
> s = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', s)
> s = re.sub('#', '_', s)
> return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s).lower()
> --
> 2.47.0
>
next prev parent reply other threads:[~2024-11-04 20:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-04 20:51 [PATCH i-g-t v2 1/2] i915/perf: Fix invalid escape warnings José Roberto de Souza
2024-11-04 20:52 ` [PATCH i-g-t v2 2/2] oa/i915: Add ARL standlone oa files José Roberto de Souza
2024-11-04 21:06 ` Dixit, Ashutosh
2024-11-04 21:10 ` Souza, Jose
2024-11-05 14:29 ` Souza, Jose
2024-11-04 20:56 ` Dixit, Ashutosh [this message]
2024-11-05 10:56 ` ✓ Fi.CI.BAT: success for series starting with [i-g-t,v2,1/2] i915/perf: Fix invalid escape warnings Patchwork
2024-11-05 11:29 ` ✓ CI.xeBAT: " Patchwork
2024-11-06 12:53 ` ✗ CI.xeFULL: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85ttcmyay2.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jose.souza@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.