Introduce refactoring for substrings of %-formatted strings with named substitutions (PY-3654)

This commit is contained in:
Andrey Vlasovskikh
2012-12-28 20:09:30 +04:00
parent d37cc7d16f
commit c229061331
4 changed files with 48 additions and 8 deletions
@@ -0,0 +1,2 @@
a = "Hello"
print("%(a)s %(name)s" % {"name": "World", "a": a})
@@ -0,0 +1 @@
print("<selection>Hello</selection> %(name)s" % {"name": "World"})