linux-kernel-mentees.lists.linuxfoundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scripts/gdb/symbols: fix invalid escape sequence warning
@ 2024-03-04  1:25 Andrew Ballance
  0 siblings, 0 replies; only message in thread
From: Andrew Ballance @ 2024-03-04  1:25 UTC (permalink / raw)
  To: linux-kernel
  Cc: mcgrof, Kuan-Ying.Lee, koudai, p.raghav, akpm, kbingham,
	jan.kiszka, skhan, linux-kernel-mentees, Andrew Ballance

With python 3.12, '\.' results in this warning
    SyntaxWarning: invalid escape sequence '\.'

Signed-off-by: Andrew Ballance <andrewjballance@gmail.com>
---
 scripts/gdb/linux/symbols.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gdb/linux/symbols.py b/scripts/gdb/linux/symbols.py
index c8047f4441e6..e8316beb17a7 100644
--- a/scripts/gdb/linux/symbols.py
+++ b/scripts/gdb/linux/symbols.py
@@ -82,7 +82,7 @@ lx-symbols command."""
         self.module_files_updated = True
 
     def _get_module_file(self, module_name):
-        module_pattern = ".*/{0}\.ko(?:.debug)?$".format(
+        module_pattern = r".*/{0}\.ko(?:.debug)?$".format(
             module_name.replace("_", r"[_\-]"))
         for name in self.module_files:
             if re.match(module_pattern, name) and os.path.exists(name):
-- 
2.44.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-04  1:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-04  1:25 [PATCH] scripts/gdb/symbols: fix invalid escape sequence warning Andrew Ballance

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).