parameters: (exclude=set())
docstring: Close all open file descriptors.
  
          Closes every file descriptor (if open) of this process. If
          specified, `exclude` is a set of file descriptors to *not*
          close.
docstring_summary: Close all open file descriptors.
docstring_tokens: Close all open file descriptors .
function: def close_all_open_files(exclude=set()):
      """ Close all open file descriptors.
  
          Closes every file descriptor (if open) of this process. If
          specified, `exclude` is a set of file descriptors to *not*
          close.
  
          """
      for fd in reversed([int(x) for x in os.listdir("/proc/self/fd")]):
          if fd not in exclude:
              close_file_descriptor_if_open(fd)
function_tokens: def close_all_open_files ( exclude = set ( ) ) : for fd in reversed ( [ int ( x ) for x in os . listdir ( "/proc/self/fd" ) ] ) : if fd not in exclude : close_file_descriptor_if_open ( fd )