Switch to unified view

a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
...
...
37
    def patchit(func):
37
    def patchit(func):
38
        setattr(obj, func.__name__, func)
38
        setattr(obj, func.__name__, func)
39
    return patchit
39
    return patchit
40
40
41
def really_unicode(s):
41
def really_unicode(s):
42
    if s is None: return u''
42
    # try naive conversion to unicode
43
    # try naive conversion to unicode
43
    try:
44
    try:
44
        return unicode(s)
45
        return unicode(s)
45
    except UnicodeDecodeError:
46
    except UnicodeDecodeError:
46
        pass
47
        pass