public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: make-target-delegates.py: make one string raw
@ 2023-02-27 18:29 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2023-02-27 18:29 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=dcca01ace7e41c476387aea0ac534d21fa58e35d

commit dcca01ace7e41c476387aea0ac534d21fa58e35d
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date:   Sun Feb 26 20:14:01 2023 -0500

    gdb: make-target-delegates.py: make one string raw
    
    Fixes the following flake8 warning:
    
      make-target-delegates.py:36:39: W605 invalid escape sequence '\s'
    
    Change-Id: I25eeb296f55765e17e5217a2d1e49018f63a3acd
    Reviewed-By: Tom Tromey <tom@tromey.com>
    Reviewed-By: Andrew Burgess <aburgess@redhat.com>

Diff:
---
 gdb/make-target-delegates.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/make-target-delegates.py b/gdb/make-target-delegates.py
index 969f21baa01..2df84cd458c 100755
--- a/gdb/make-target-delegates.py
+++ b/gdb/make-target-delegates.py
@@ -33,7 +33,7 @@ ENDER = re.compile(r"^\s*};$")
 # Match a C symbol.
 SYMBOL = "[a-zA-Z_][a-zA-Z0-9_]*"
 # Match the name part of a method in struct target_ops.
-NAME_PART = r"(?P<name>" + SYMBOL + ")\s"
+NAME_PART = r"(?P<name>" + SYMBOL + r")\s"
 # Match the arguments to a method.
 ARGS_PART = r"(?P<args>\(.*\))"
 # We strip the indentation so here we only need the caret.

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

only message in thread, other threads:[~2023-02-27 18:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-27 18:29 [binutils-gdb] gdb: make-target-delegates.py: make one string raw Simon Marchi

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 read-only IMAP folder(s) and NNTP newsgroup(s).