def encode(strio, compDict = None):
        """
        Write a representation of this object to the given
        file object.

        @type strio: File-like object
        @param strio: The stream to which to write bytes

        @type compDict: C{dict} or L{None}
        @param compDict: A dictionary of backreference addresses that have
        already been written to this stream and that may be used for
        compression.
        """

        Write a representation of this object to the given
        file object.

        @type strio: File-like object
        @param strio: The stream to which to write bytes

        @type compDict: C{dict} or L{None}
        @param compDict: A dictionary of backreference addresses that have
        already been written to this stream and that may be used for
        compression.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/dns.py