From aa3f5ef555745fc4c8274e4b00a937f184dedcc2 Mon Sep 17 00:00:00 2001 From: Dmitry Cheryasov Date: Sun, 16 May 2010 18:59:25 +0300 Subject: [PATCH] Fixed a typo, moved a message to resources. --- python/src/com/jetbrains/python/PyBundle.properties | 1 + .../python/inspections/PyTupleItemAssignmentInspection.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/PyBundle.properties b/python/src/com/jetbrains/python/PyBundle.properties index 4555f9cc7fb4..f10ff19eec31 100644 --- a/python/src/com/jetbrains/python/PyBundle.properties +++ b/python/src/com/jetbrains/python/PyBundle.properties @@ -237,6 +237,7 @@ INSP.NAME.byte.literal=Byte literal contains characters > 127 # PyTupleItemAssignmentInspection INSP.NAME.tuple.item.assignment=Tuple item assignment +INSP.tuples.never.assign.items=Tuples don't support item assignment # Refactoring # introduce diff --git a/python/src/com/jetbrains/python/inspections/PyTupleItemAssignmentInspection.java b/python/src/com/jetbrains/python/inspections/PyTupleItemAssignmentInspection.java index e630a5537aa8..564b4e1a1338 100644 --- a/python/src/com/jetbrains/python/inspections/PyTupleItemAssignmentInspection.java +++ b/python/src/com/jetbrains/python/inspections/PyTupleItemAssignmentInspection.java @@ -68,7 +68,7 @@ public class PyTupleItemAssignmentInspection extends LocalInspectionTool { PyExpression expression = (PyExpression)element; PyType type = expression.getType(TypeEvalContext.fast()); if (type instanceof PyTupleType) { - registerProblem(node, "Tuples doesn't support item assignment"); + registerProblem(node, PyBundle.message("INSP.tuples.never.assign.items")); } } }