Sergio Durigan Junior
d9c4ba536c
Use raw strings on gdb.python/py-xmethods.exp (and fix Python 3.8's "SyntaxWarning: invalid escape sequence")
...
The way unrecognized escape sequences are handled has changed in
Python 3.8: users now see a SyntaxWarning message, which will
eventually become a SyntaxError in future versions of Python:
(gdb) source /blabla/gdb.python/py-xmethods/py-xmethods.py
/blabla/gdb.python/py-xmethods/py-xmethods.py:204: SyntaxWarning: invalid escape seque
nce \+
'operator\+',
/blabla/gdb.python/py-xmethods/py-xmethods.py:211: SyntaxWarning: invalid escape seque
nce \+
'operator\+\+',
One of our testcases, gdb.python/py-xmethods.exp, contains strings in
the form of "operator\+". This is not recognized by Python, but is
still needed by the testsuite to work properly. The solution is
simple: we just have to make sure these strings are marked as
raw (i.e, r""). This is what this patch does. I took the opportunity
to also convert other strings to raw, which, in two cases, allowed the
removal of an extra backslash.
I tested this using Python 3.7 and Python 3.8, and everything works
fine.
I think I could push this as obvious, but decided to send it to
gdb-patches just in case.
gdb/testsuite/ChangeLog:
2019-08-26 Sergio Durigan Junior <sergiodj@redhat.com >
* gdb.python/py-xmethods.exp: Use raw strings when passing
arguments to SimpleXMethodMatcher.
2019-08-26 09:18:37 -04:00
..
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-08-05 13:06:18 -05:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-07-09 19:34:18 +01:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-06-03 21:59:35 +02:00
2019-08-13 09:09:30 -07:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-08-13 09:09:30 -07:00
2019-01-01 10:01:51 +04:00
2019-08-13 09:09:30 -07:00
2019-01-01 10:01:51 +04:00
2019-08-13 09:09:30 -07:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-02-27 11:43:06 -07:00
2019-01-01 10:01:51 +04:00
2019-04-01 10:00:04 +02:00
2019-04-29 22:01:09 +01:00
2019-04-01 10:00:04 +02:00
2019-01-01 10:01:51 +04:00
2019-06-13 00:18:41 +01:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-08-13 09:09:30 -07:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-08-13 09:09:30 -07:00
2019-01-01 10:01:51 +04:00
2019-04-01 21:41:51 +01:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-08-13 09:09:30 -07:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-04-29 22:01:09 +01:00
2019-04-29 22:01:09 +01:00
2019-04-29 22:01:09 +01:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-08-13 09:09:30 -07:00
2019-07-29 20:44:08 -05:00
2019-08-13 09:09:30 -07:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-08-13 09:09:30 -07:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-08-13 09:09:30 -07:00
2019-01-01 10:01:51 +04:00
2019-03-26 18:25:10 +00:00
2019-03-26 18:25:10 +00:00
2019-03-26 18:25:10 +00:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-08-13 09:09:30 -07:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-07-30 11:04:37 -05:00
2019-07-30 11:04:37 -05:00
2019-08-13 09:09:30 -07:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-04-08 20:21:34 -07:00
2019-01-01 10:01:51 +04:00
2019-06-04 09:46:06 -06:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-05-08 10:20:06 -06:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-08-26 09:18:37 -04:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00
2019-08-15 14:21:57 -05:00
2019-01-01 10:01:51 +04:00
2019-01-01 10:01:51 +04:00