code: def _hexify(data, chunksize=None):
      
  
      if chunksize is None:
          chunksize = _hex_chunksize
      hex = data.encode('hex_codec')
      l = len(hex)
      if l > chunksize:
          chunks = []
          i = 0
          while i < l:
              chunks.append(hex[i : i + chunksize])
              i += chunksize
          hex = ' '.join(chunks)
      return hex
docs: Convert a binary string into its hex encoding, broken up into chunks
      of I{chunksize} characters separated by a space.
  
      @param data: the binary string
      @type data: string
      @param chunksize: the chunk size.  Default is L{dns.rdata._hex_chunksize}
      @rtype: string