[FIX] tools.ustr, like str, must always return a string

lp bug: https://launchpad.net/bugs/311595 fixed

bzr revid: christophe@taupe-20081226184538-lkf5lepssmgctbsz
This commit is contained in:
Christophe Simonis 2008-12-26 19:45:38 +01:00
parent 2bc319d919
commit e5f9fa5eb2
1 changed files with 0 additions and 4 deletions

View File

@ -649,10 +649,6 @@ def ustr(value):
@return: unicode string
"""
if (value is None) or (value is False):
return value
if not value:
return u''
if isinstance(value, unicode):
return value