From b9dbeaf27ea4d8b61fcca464ab9459f2283212d2 Mon Sep 17 00:00:00 2001 From: Muthu Subramanian K Date: Mon, 8 Nov 2010 22:20:06 +0530 Subject: Reverting while() to if() to replace text. Since text.replace itself would do a replace-all. --- helpcontent2/to-wiki/getalltitles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helpcontent2') diff --git a/helpcontent2/to-wiki/getalltitles.py b/helpcontent2/to-wiki/getalltitles.py index 793465f2fc..97e2649ee8 100755 --- a/helpcontent2/to-wiki/getalltitles.py +++ b/helpcontent2/to-wiki/getalltitles.py @@ -59,7 +59,7 @@ def get_module(text): def replace_text(text): for i in replace_text_list: - while text.find(i[0]) >= 0: + if text.find(i[0]) >= 0: text = text.replace(i[0],i[1]) return text -- cgit