diff --git a/python/python-psi-impl/src/com/jetbrains/python/codeInsight/intentions/ImportToImportFromIntention.java b/python/python-psi-impl/src/com/jetbrains/python/codeInsight/intentions/ImportToImportFromIntention.java index 43c848a003e2..e73e894624c8 100644 --- a/python/python-psi-impl/src/com/jetbrains/python/codeInsight/intentions/ImportToImportFromIntention.java +++ b/python/python-psi-impl/src/com/jetbrains/python/codeInsight/intentions/ImportToImportFromIntention.java @@ -132,7 +132,7 @@ public class ImportToImportFromIntention extends PyBaseIntentionAction { if (!FileModificationService.getInstance().preparePsiElementForWrite(elt)) { return; } - assert parentElt instanceof PyReferenceExpression; + assert parentElt instanceof PyReferenceExpression: parentElt.getClass(); final PyElement newReference = generator.createExpressionFromText(languageLevel, nameUsed); parentElt.replace(newReference); }