diff --git a/data/tools/wesnoth/wmlparser.py b/data/tools/wesnoth/wmlparser.py index 7165f25ee0f..35d2af04a7f 100755 --- a/data/tools/wesnoth/wmlparser.py +++ b/data/tools/wesnoth/wmlparser.py @@ -817,7 +817,8 @@ class Parser: def strify(string): """ -Massage a string into what appears to be a JSON-compatible form +Massage a string into what appears to be a JSON-compatible form. +This can be replaced with json.dumps() in python 2.6. """ s = repr(string) front = s.index("'") diff --git a/data/tools/wesnoth/wmlparser2.py b/data/tools/wesnoth/wmlparser2.py index f75ad6aa94c..d5376f3b59c 100755 --- a/data/tools/wesnoth/wmlparser2.py +++ b/data/tools/wesnoth/wmlparser2.py @@ -395,7 +395,8 @@ class Parser: def strify(string): """ -Massage a string into what appears to be a JSON-compatible form +Massage a string into what appears to be a JSON-compatible form. +This can be replaced with json.dumps() in python 2.6. """ s = repr(string) front = s.index("'")