tools/metrics/histograms/expand_owners_unittest.py
def _MakeOwnersFile(filename, directory):
  """Makes a temporary file in this directory and returns its absolute path.

  Args:
    filename: A string filename, e.g. 'OWNERS'.
    directory: A string directory under which to make the new file.

  Returns:
    The temporary file's absolute path.
  """
  if not directory:
    directory = os.path.abspath(os.path.join(os.path.dirname(__file__)))
  owners_file = tempfile.NamedTemporaryFile(suffix=filename, dir=directory)
  return os.path.abspath(owners_file.name)
Makes a temporary file in this directory and returns its absolute path.

  Args:
    filename: A string filename, e.g. 'OWNERS'.
    directory: A string directory under which to make the new file.

  Returns:
    The temporary file's absolute path.
  
Makes a temporary file in this directory and returns its absolute path.
Makes a temporary file in this directory and returns its absolute path .
def _MakeOwnersFile(filename, directory):
  if not directory:
    directory = os.path.abspath(os.path.join(os.path.dirname(__file__)))
  owners_file = tempfile.NamedTemporaryFile(suffix=filename, dir=directory)
  return os.path.abspath(owners_file.name)
def _MakeOwnersFile ( filename , directory ) : if not directory : directory = os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) ) ) owners_file = tempfile . NamedTemporaryFile ( suffix = filename , dir = directory ) return os . path . abspath ( owners_file . name )
Makes a temporary file in this directory and returns its absolute path.
Makes a temporary file in this directory and returns its absolute path .
"""Makes a temporary file in this directory and returns its absolute path.

  Args:
    filename: A string filename, e.g. 'OWNERS'.
    directory: A string directory under which to make the new file.

  Returns:
    The temporary file's absolute path.
  """
The temporary file's absolute path.
The temporary file ' s absolute path .
filename
A string filename, e.g. 'OWNERS'.
A string filename e . g . ' OWNERS ' .
directory
A string directory under which to make the new file.
A string directory under which to make the new file .