fixed bug:

ensure_unicode_string return None if 'string'
is type unicode
This commit is contained in:
Dimitur Kirov 2005-08-25 08:02:41 +00:00
parent 906c0c0fe2
commit fd7936ff36
1 changed files with 2 additions and 1 deletions

View File

@ -125,6 +125,7 @@ def escape_for_pango_markup(string):
def ensure_unicode_string(string):
if type(string) == str:
return unicode(string, encoding = 'utf-8')
return string
def autodetect_browser_mailer():
#recognize the environment for appropriate browser/mailer