Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "José Roberto de Souza" <jose.souza@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Ashutosh Dixit" <ashutosh.dixit@intel.com>,
	"José Roberto de Souza" <jose.souza@intel.com>
Subject: [PATCH i-g-t v2 1/2] i915/perf: Fix invalid escape warnings
Date: Mon,  4 Nov 2024 12:51:59 -0800	[thread overview]
Message-ID: <20241104205201.175541-1-jose.souza@intel.com> (raw)

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").

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


             reply	other threads:[~2024-11-04 20:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-04 20:51 José Roberto de Souza [this message]
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 ` [PATCH i-g-t v2 1/2] i915/perf: Fix invalid escape warnings Dixit, Ashutosh
2024-11-05 10:56 ` ✓ Fi.CI.BAT: success for series starting with [i-g-t,v2,1/2] " 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=20241104205201.175541-1-jose.souza@intel.com \
    --to=jose.souza@intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox