def makePickle(self, record):
        ei = record.exc_info
        if ei:
            dummy = self.format(record) # just to get traceback text into record.exc_text
            record.exc_info = None  # to avoid Unpickleable error
        s = cPickle.dumps(record.__dict__, 1)
        if ei:
            record.exc_info = ei  # for next handler
        slen = struct.pack(">L", len(s))
        return slen + s
Get rid of end of line comments and strip new lines CR "/n"
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/logging/handlers.py/SocketHandler.makePickle--crossover with--dataset/ETHPy150Open apache/climate/obs4MIPs/Toolbox/CMORresources.py/CMORTable.__getitem__