~mabac/launchpad-work-items-tracker/fix-none-whiteboard

1
2
3
4
5
6
7
def unicode_or_None(attr):
    if attr is None:
        return attr
    if isinstance(attr, unicode):
        return attr
    return attr.decode("utf-8")