mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Introduce refactoring for strings with %-based positional formatting (PY-3654)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
a = "World"
|
||||
print("%s: %s %s" % ("Error", "Hello", a))
|
||||
@@ -0,0 +1 @@
|
||||
print("%s: %s <selection>World</selection>" % ("Error", "Hello"))
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
a = "World"
|
||||
print("%s: %s %s" % ("Error", "Hello", a))
|
||||
@@ -0,0 +1 @@
|
||||
print("%s: %s <selection>World</selection>" % ("Error", "Hello",))
|
||||
@@ -0,0 +1,2 @@
|
||||
a = "Hello"
|
||||
print("%s %s" % (a, "World"))
|
||||
@@ -0,0 +1 @@
|
||||
print("<selection>Hello</selection> %s" % ("World",))
|
||||
@@ -0,0 +1,2 @@
|
||||
a = "Hello"
|
||||
print("%s: %s %s" % ("Error", a, "World"))
|
||||
@@ -0,0 +1 @@
|
||||
print("%s: <selection>Hello</selection> %s" % ("Error", "World"))
|
||||
Reference in New Issue
Block a user