From 3f155fd404fe0078c790ae6c2c3b2d4e37e2983c Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Wed, 4 May 2011 16:37:03 +0400 Subject: [PATCH] fixed PY-3476 Reported element PyDictLiteralExpression is not from the file --- .../jetbrains/python/inspections/PyStringFormatInspection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/inspections/PyStringFormatInspection.java b/python/src/com/jetbrains/python/inspections/PyStringFormatInspection.java index eb7ebae0f28f..529cb8f88d5b 100644 --- a/python/src/com/jetbrains/python/inspections/PyStringFormatInspection.java +++ b/python/src/com/jetbrains/python/inspections/PyStringFormatInspection.java @@ -237,7 +237,7 @@ public class PyStringFormatInspection extends PyInspection { if (myExpectedArguments > 0) { if (myExpectedArguments == (expressions.length + additionalExpressions.size())) { // probably "%s %s" % {'a':1, 'b':2}, with names forgotten in template - registerProblem(pyElement, PyBundle.message("INSP.format.requires.no.mapping")); + registerProblem(rightExpression, PyBundle.message("INSP.format.requires.no.mapping")); } else { // "braces: %s" % {'foo':1} gives "braces: {'foo':1}", implicit str() kicks in