diff options
author | Muthu Subramanian K <sumuthu@novell.com> | 2010-11-08 22:20:06 +0530 |
---|---|---|
committer | Muthu Subramanian K <sumuthu@novell.com> | 2010-11-08 22:20:06 +0530 |
commit | b9dbeaf27ea4d8b61fcca464ab9459f2283212d2 (patch) | |
tree | eb465b9dc845ad2169ef52c063e05bbca607b589 /helpcontent2/to-wiki | |
parent | f224ef451ecceafe7c47e3469cd0f8a4b6505c78 (diff) |
Reverting while() to if() to replace text.
Since text.replace itself would do a replace-all.
Diffstat (limited to 'helpcontent2/to-wiki')
-rwxr-xr-x | helpcontent2/to-wiki/getalltitles.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |