def ustr(s, encoding="utf-8"):
        if isinstance(s, str):
            return s
        try:
            return s.decode(encoding)
        except AttributeError:
            return str(s)
Convert argument to unicode string.
dataset/ETHPy150Open nigelsmall/py2neo/py2neo/compat.py/ustr