def ustr(s, encoding="utf-8"):
        if isinstance(s, str):
            return s
        try:
            return s.decode(encoding)
        except AttributeError:
            return str(s)
Return whether object supports random access.
dataset/ETHPy150Open nigelsmall/py2neo/py2neo/compat.py/ustr--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/_pyio.py/IOBase.seekable