From a6f9367c870f49a32ec83b1a4c63f34fbce2f973 Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Wed, 16 Sep 2009 13:01:00 +0400 Subject: [PATCH] fileForDocumentCheckedOutSuccessfully --- python/src/com/jetbrains/python/psi/PyUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/psi/PyUtil.java b/python/src/com/jetbrains/python/psi/PyUtil.java index 4184f8cef9c8..14df8cb887e6 100644 --- a/python/src/com/jetbrains/python/psi/PyUtil.java +++ b/python/src/com/jetbrains/python/psi/PyUtil.java @@ -54,7 +54,7 @@ public class PyUtil { if (doc == null) { return; } - if (!FileDocumentManager.getInstance().requestWriting(doc, element.getProject())) { + if (!FileDocumentManager.getInstance().fileForDocumentCheckedOutSuccessfully(doc, element.getProject())) { throw new IllegalStateException(); } }