def use_compression(self, compress=True):
if compress:<EOL><INDENT>self._preferred_compression = ( '<STR_LIT>', '<STR_LIT>', '<STR_LIT:none>' )<EOL><DEDENT>else:<EOL><INDENT>self._preferred_compression = ( '<STR_LIT:none>', )<EOL><DEDENT>
Turn on/off compression.  This will only have an affect before starting
the transport (ie before calling L{connect}, etc).  By default,
compression is off since it negatively affects interactive sessions.

@param compress: C{True} to ask the remote client/server to compress
    traffic; C{False} to refuse compression
@type compress: bool

@since: 1.5.2