1. Fleppie
  2. RhodeCode

Commits

Marcin Kuzminski  committed ef2f75e

reverted accidentally removed function in safe_str

  • Participants
  • Parent commits d533249
  • Branches beta

Comments (0)

Files changed (1)

File rhodecode/lib/__init__.py

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