tools/check_git_config.py
def temp_directory():
  """Creates a temp directory, then nukes it."""
  tmp = tempfile.mkdtemp()
  try:
    yield tmp
  finally:
    try:
      shutil.rmtree(tmp)
    except (OSError, IOError):
      logging.exception('Failed to remove temp directory %s', tmp)
Creates a temp directory, then nukes it.
Creates a temp directory, then nukes it.
Creates a temp directory then nukes it .
def temp_directory():
  tmp = tempfile.mkdtemp()
  try:
    yield tmp
  finally:
    try:
      shutil.rmtree(tmp)
    except (OSError, IOError):
      logging.exception('Failed to remove temp directory %s', tmp)
def temp_directory ( ) : tmp = tempfile . mkdtemp ( ) try : yield tmp finally : try : shutil . rmtree ( tmp ) except ( OSError , IOError ) : logging . exception ( 'Failed to remove temp directory %s' , tmp )
Creates a temp directory, then nukes it.
Creates a temp directory then nukes it .
"""Creates a temp directory, then nukes it."""