Switch to unified view

a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
...
...
26
from webhelpers import date, feedgenerator, html, number, misc, text
26
from webhelpers import date, feedgenerator, html, number, misc, text
27
27
28
from pymongo import bson
28
from pymongo import bson
29
29
30
re_path_portion = re.compile(r'^[a-z][-a-z0-9]{2,}$')
30
re_path_portion = re.compile(r'^[a-z][-a-z0-9]{2,}$')
31
32
def monkeypatch(obj):
33
    def patchit(func):
34
        setattr(obj, func.__name__, func)
35
    return patchit
31
36
32
def really_unicode(s):
37
def really_unicode(s):
33
    try:
38
    try:
34
        return unicode(s)
39
        return unicode(s)
35
    except UnicodeDecodeError:
40
    except UnicodeDecodeError: