parameters: (data, chunksize=None)
return_statement: return hex
docstring: 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
docstring_summary: Convert a binary string into its hex encoding, broken up into chunks
      of I{chunksize} characters separated by a space.
docstring_tokens: Convert a binary string into its hex encoding broken up into chunks of I { chunksize } characters separated by a space .
function: def _hexify(data, chunksize=None):
      """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
      """
  
      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
function_tokens: 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