[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:
parent
2bc319d919
commit
e5f9fa5eb2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue