parameters: (self, path_separator=os.path.sep)
docstring: init.
  
      Args:
        path_separator:  optional substitute for os.path.sep
docstring_summary: init.
docstring_tokens: init .
function: def __init__(self, path_separator=os.path.sep):
      """init.
  
      Args:
        path_separator:  optional substitute for os.path.sep
      """
      self.path_separator = path_separator
      self.root = FakeDirectory(self.path_separator)
      self.cwd = self.root.name
      # We can't query the current value without changing it:
      self.umask = os.umask(0o22)
      os.umask(self.umask)
      # A list of open file objects. Their position in the list is their
      # file descriptor number
      self.open_files = []
      # A heap containing all free positions in self.open_files list
      self.free_fd_heap = []
function_tokens: def __init__ ( self , path_separator = os . path . sep ) : self . path_separator = path_separator self . root = FakeDirectory ( self . path_separator ) self . cwd = self . root . name # We can't query the current value without changing it: self . umask = os . umask ( 0o22 ) os . umask ( self . umask ) # A list of open file objects. Their position in the list is their # file descriptor number self . open_files = [ ] # A heap containing all free positions in self.open_files list self . free_fd_heap = [ ]