def _get_from_stdin(info_desc):
    try:
        info = sys.stdin.read().strip()
    except Exception as e:
        err = _("Cannot get %(desc)s from standard input. Error: %(err)s")
        raise exc.InvalidAttribute(err % {'desc': info_desc, 'err': e})
    return info
Create a dict from a cgi.FieldStorage instance
dataset/ETHPy150Open openstack/python-ironicclient/ironicclient/v1/node_shell.py/_get_from_stdin--crossover with--dataset/ETHPy150Open benoitc/restkit/restkit/datastructures.py/MultiDict.from_fieldstorage