Commits

Marcin Kuzminski committed ef2f75e

reverted accidentally removed function in safe_str

Comments (0)

Files changed (1)

rhodecode/lib/__init__.py

     :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_