Mini Shell

Direktori : /proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/
Upload File :
Current File : //proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/stringio.py

"""
Functions for StringIO objects
"""

import io

readable_types = (io.StringIO,)
writable_types = (io.StringIO,)


def is_stringio(obj):
    return isinstance(obj, readable_types)


def is_readable(obj):
    return isinstance(obj, readable_types) and obj.readable()


def is_writable(obj):
    return isinstance(obj, writable_types) and obj.writable()

Zerion Mini Shell 1.0