Protection against breaking escaping and formatting of substrings in introduce refactoring (PY-3654)

This commit is contained in:
Andrey Vlasovskikh
2012-12-27 16:51:49 +04:00
parent bf59e2d8c2
commit f2bc06d0ac
10 changed files with 78 additions and 5 deletions
@@ -0,0 +1 @@
print(u"Hel<selection>lo \u00d6sterreich\\!\</selection>n")
@@ -0,0 +1 @@
print("Hel<selection>lo %</selection>s!" % "World")
@@ -0,0 +1,2 @@
a = u"lo \u00d6sterreich\\!\n"
print(u"Hel" + a + u"\n")
@@ -0,0 +1 @@
print(u"Hel<selection>lo \u00d6sterreich\\!\n</selection>\n")
@@ -0,0 +1,2 @@
a = "lo %s"
print(("Hel" + a + "!") % "World")
@@ -0,0 +1 @@
print("Hel<selection>lo %s</selection>!" % "World")