From bc3e7d0606e041788f81504570e6b407a9fbcced Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Tue, 29 Jan 2013 23:07:25 +0400 Subject: [PATCH] cleaning --- src/common/helpers.py | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/src/common/helpers.py b/src/common/helpers.py index 3c95ff268..e155f8b58 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -448,44 +448,6 @@ def get_output_of_command(command): return output -#def decode_string(string): - #""" - #Try to decode (to make it Unicode instance) given string - #""" - #if isinstance(string, unicode): - #return string - ## by the time we go to iso15 it better be the one else we show bad characters - #encodings = (locale.getpreferredencoding(), 'utf-8', 'iso-8859-15') - #for encoding in encodings: - #try: - #string = string.decode(encoding) - #except UnicodeError: - #continue - #break - - #return string - -#def ensure_utf8_string(string): - #""" - #Make sure string is in UTF-8 - #""" - #try: - #string = decode_string(string).encode('utf-8') - #except Exception: - #pass - #return string - -#def wrapped_ensure_utf8_string(fn): - #def wrapped(n): - #return ensure_utf8_string(n) - #return wrapped - -#@wrapped_ensure_utf8_string -#def escape_text(text): - #return GObject.markup_escape_text(text) - -#GObject.markup_escape_text = escape_text - def get_windows_reg_env(varname, default=''): """ Ask for paths commonly used but not exposed as ENVs in english Windows 2003