# HG changeset patch # User Thierry Florac # Date 1453139263 -3600 # Node ID 044faae3d7ede7f0a3182ab4bc2aaf0a32bcfe99 # Parent 13a3c247b295dd5b215581174798b11ca680c058 Updated "translate_string" function docstring diff -r 13a3c247b295 -r 044faae3d7ed src/pyams_utils/unicode.py --- a/src/pyams_utils/unicode.py Wed Oct 07 17:50:33 2015 +0200 +++ b/src/pyams_utils/unicode.py Mon Jan 18 18:47:43 2016 +0100 @@ -82,13 +82,12 @@ """Remove extended characters from string and replace them with 'basic' ones @param s: text to be cleaned. - @type s: str or unicode @param escape_slashes: if True, slashes are also converted - @type escape_slashes: boolean @param force_lower: if True, result is automatically converted to lower case - @type force_lower: boolean + @param spaces: character used to replace spaces + @param remove_punctuation: if True, all punctuation characters are removed + @param keep_chars: punctuation characters which may be kept @return: text without diacritics - @rtype: unicode """ if escape_slashes: s = s.replace("\\", "/").split("/")[-1]