Mercurial > kallithea
changeset 2043:ef2f75e99c3e beta
reverted accidentally removed function in safe_str
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 26 Feb 2012 21:53:36 +0200 |
parents | d533249e7d55 |
children | fa74e91695a0 5b12cbae0b50 |
files | rhodecode/lib/__init__.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/__init__.py Sun Feb 26 21:38:38 2012 +0200 +++ b/rhodecode/lib/__init__.py Sun Feb 26 21:53:36 2012 +0200 @@ -231,6 +231,10 @@ :rtype: str :returns: str object """ + + # if it's not basestr cast to str + if not isinstance(unicode_, basestring): + return str(unicode_) if isinstance(unicode_, str): return unicode_