def _safeUnicodeDictionary(self, dictionary):
        try:
            return unicode(
                dict((saferepr(key), saferepr(value)) for (key, value)
                     in dictionary.items()))
        except:
            return saferepr(dictionary)
Serialize a dictionary to a unicode string no matter what it contains.
dataset/ETHPy150Open ClusterHQ/eliot/eliot/_output.py/Logger._safeUnicodeDictionary