def validate_string_dict(dct):
    for k,v in dct.items():
        if not isinstance(k, str):
            raise ValueError('key %r in dict must be a string' % k)
        if not isinstance(v, str):
            raise ValueError('value %r in dict must be a string' % v)


#-----------------------------------------------------------------------------
# ZMQ Socket Channel classes
#-----------------------------------------------------------------------------
Reads from the file object given the handle and amount to read.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/zmq/kernelmanager.py/validate_string_dict--crossover with--dataset/ETHPy150Open kdart/pycopia/QA/pycopia/remote/WindowsServer.py/Win32Agent.fread