From 6f3d0a2dd95fbd10c167ad63f8dd76cee99ad349 Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Thu, 24 Jan 2013 10:59:55 +0400 Subject: [PATCH] fixed PY-8568 Unwrap for try statement is called Unwrap while --- python/src/com/jetbrains/python/PyBundle.properties | 2 +- .../com/jetbrains/python/refactoring/unwrap/PyTryUnwrapper.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/src/com/jetbrains/python/PyBundle.properties b/python/src/com/jetbrains/python/PyBundle.properties index 62188a456219..61a2b4948728 100644 --- a/python/src/com/jetbrains/python/PyBundle.properties +++ b/python/src/com/jetbrains/python/PyBundle.properties @@ -221,7 +221,7 @@ surround.with.try.except.template=try / except ########################################################################################################################## unwrap.if=Unwrap if... unwrap.while=Unwrap while... -unwrap.try=Unwrap while... +unwrap.try=Unwrap try... unwrap.else=Unwrap else... unwrap.elif=Unwrap elif... remove.else=Remove else... diff --git a/python/src/com/jetbrains/python/refactoring/unwrap/PyTryUnwrapper.java b/python/src/com/jetbrains/python/refactoring/unwrap/PyTryUnwrapper.java index 02ae1f9ae35f..9dce67c3be79 100644 --- a/python/src/com/jetbrains/python/refactoring/unwrap/PyTryUnwrapper.java +++ b/python/src/com/jetbrains/python/refactoring/unwrap/PyTryUnwrapper.java @@ -10,7 +10,7 @@ import com.jetbrains.python.psi.*; */ public class PyTryUnwrapper extends PyUnwrapper { public PyTryUnwrapper() { - super(PyBundle.message("unwrap.while")); + super(PyBundle.message("unwrap.try")); } public boolean isApplicableTo(PsiElement e) {