parameters: (opts=None, args=None)
return_statement: return linesep.join(l)
docstring: Python-hexify file strings.
  
      This function reads files and returns them as a copy-n-pasteable hexified
      string. A file named 'test.txt' with data 'abcdef' with an invisible
      newline at the end would be hexified as::
  
          \\x61\\x62\\x63\\x64\\x65\\x66\\x0a
  
      If you're seeing double backslashes, just pretend they're single
      backslashes. Better yet, just use the function.
  
      ARGS: filenames of strings to hexify
docstring_summary: Python-hexify file strings.
docstring_tokens: Python - hexify file strings .
function: def cmd_hexify(opts=None, args=None):
      """Python-hexify file strings.
  
      This function reads files and returns them as a copy-n-pasteable hexified
      string. A file named 'test.txt' with data 'abcdef' with an invisible
      newline at the end would be hexified as::
  
          \\x61\\x62\\x63\\x64\\x65\\x66\\x0a
  
      If you're seeing double backslashes, just pretend they're single
      backslashes. Better yet, just use the function.
  
      ARGS: filenames of strings to hexify
      """
      l = []
      _hexify = lambda s: ''.join(['\\x' + hex(ord(c))[2:].zfill(2) for c in s])
  
      for filename in args:
          l.append("Filename: %s" % filename)
          s = _cat_files([filename])
          l.append(_hexify(s))
          l.append('')
  
      return linesep.join(l)
function_tokens: def cmd_hexify ( opts = None , args = None ) : l = [ ] _hexify = lambda s : '' . join ( [ '\\x' + hex ( ord ( c ) ) [ 2 : ] . zfill ( 2 ) for c in s ] ) for filename in args : l . append ( "Filename: %s" % filename ) s = _cat_files ( [ filename ] ) l . append ( _hexify ( s ) ) l . append ( '' ) return linesep . join ( l )