diff --git a/python/src/com/jetbrains/python/psi/PyUtil.java b/python/src/com/jetbrains/python/psi/PyUtil.java index 8c0dd9f9f1a6..50cca7aa50a0 100644 --- a/python/src/com/jetbrains/python/psi/PyUtil.java +++ b/python/src/com/jetbrains/python/psi/PyUtil.java @@ -952,17 +952,6 @@ public class PyUtil { while (value instanceof PyParenthesizedExpression) { value = ((PyParenthesizedExpression)value).getContainedExpression(); } - if (value instanceof PyReferenceExpression) { - PyReferenceExpression refExpr = (PyReferenceExpression)value; - PsiElement deref = refExpr.getReference().resolve(); - if (deref instanceof PyTargetExpression) { - PyTargetExpression te = (PyTargetExpression)deref; - PyExpression assignedValue = te.findAssignedValue(); - if (assignedValue instanceof PySequenceExpression) { - value = assignedValue; - } - } - } if (value instanceof PySequenceExpression) { final PyExpression[] elements = ((PySequenceExpression)value).getElements(); List result = new ArrayList(elements.length);