comparison src/tools/utils.py @ 916:1a759096ccbd

core: use of Const for profile_key + replaced '@DEFAULT@' default profile_key by '@NONE@'
author Goffi <goffi@goffi.org>
date Fri, 21 Mar 2014 16:27:09 +0100
parents 1fe00f0c9a91
children 3a20312d4012
comparison
equal deleted inserted replaced
915:6f96ee4d8cc0 916:1a759096ccbd
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 """ various useful methods """ 20 """ various useful methods """
21 21
22 import unicodedata 22 import unicodedata
23 23
24 24
25 def clean_ustr(ustr): 25 def clean_ustr(ustr):
26 """Clean unicode string 26 """Clean unicode string
27 remove special characters from unicode string""" 27 remove special characters from unicode string"""
28 def valid_chars(unicode_source): 28 def valid_chars(unicode_source):
29 for char in unicode_source: 29 for char in unicode_source: