[PATCH] Remove f-strings from DAP
Tom Tromey
tromey@adacore.com
Fri Jun 2 16:34:32 GMT 2023
>>>>> "Paul" == Paul Koning <paulkoning@comcast.net> writes:
>> - raise Exception(f'unknown evaluate context "{context}"')
>> + raise Exception("unknown evaluate context " + context)
Paul> That (and the others) is not quite equivalent to what was there
Paul> before.
Yeah, it isn't identical, but it's the same in practice.
In some spots the argument is known to be a string, and in ones where
str() is applied, it's known to be an int. This is clearer after the
runtime type-checking patch is applied.
Tom
More information about the Gdb-patches
mailing list