Files
openide/python/testData/refactoring/introduceVariable/substringFromFormatDictVariable.after.py
Mikhail Golubev 3c6a3baf1a [python] Fix an error when extracting a part of string with %-style formatting
Namely, if substitution values were passed as non-literal value compatible with
collections.Mapping, use plain string concatenation. The existing condition for
that was wrong.

GitOrigin-RevId: b6e9b9c615d80aa7842f883086b3544e095d5f81
2023-03-29 21:30:27 +00:00

3 lines
58 B
Python

d = {'name': 'bar'}
a = 'foo'<caret>
(a + ' %(name)s') % d