Merge branch 'python-fixes'

This commit is contained in:
Andrey Vlasovskikh
2014-01-31 14:45:55 +04:00
@@ -67,9 +67,8 @@ public class AddMethodQuickFix implements LocalQuickFix {
public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
try {
// descriptor points to the unresolved identifier
// there can be no name clash, else the name would have resolved, and it hasn't.
PsiElement problem_elt = descriptor.getPsiElement().getParent(); // id -> ref expr
PsiElement problem_elt = descriptor.getPsiElement();
PyClass cls = myQualifierType.getPyClass();
boolean call_by_class = myQualifierType.isDefinition();
String item_name = myIdentifier;