def mccp_compress(protocol, data):
 if hasattr(protocol, 'zlib'):
  return (protocol.zlib.compress(data) + protocol.zlib.flush(FLUSH))
 return data

def mccp_compress ( protocol , data ) : if hasattr ( protocol , 'zlib' ) : return ( protocol . zlib . compress ( data ) + protocol . zlib . flush ( FLUSH ) ) return data
handles zlib compression .