fixed PY-7969 Replace + with string formatting operator: disable intention for expression with undefined types

This commit is contained in:
Ekaterina Tuzova
2012-11-08 17:52:16 +04:00
parent 723180f142
commit 2c025a3237
9 changed files with 26 additions and 3 deletions
@@ -1 +1,4 @@
def foo():
return "foo"
c = "string"
"a%sf_str%s" % (foo(), c)
@@ -1 +1,3 @@
header = "header"
value = "value"
result += "%s : %s\n" % (header, value)
@@ -1 +1,4 @@
def foo():
return "foo"
u'a%sf' % foo()
@@ -1 +1,4 @@
def foo():
return "foo"
c = "string"
"a" + foo() <caret>+ "f" + "_str" + c
@@ -1 +1,3 @@
header = "header"
value = "value"
result += header<caret> + " : " + value + "\n"
@@ -0,0 +1,3 @@
def foo3(x, y, z):
i = x + <caret>y + z
return i
@@ -1 +1,4 @@
def foo():
return "foo"
u'a' + foo() <caret>+ u'f'