original_docstring: Removes the given directory
  
    On Unix systems, this just runs shutil.rmtree, but on Windows, this doesn't
    work when the directory contains junctions (as does our SDK installer).
    Therefore, on Windows, it runs rmdir /S /Q as a shell command.  This always
    does the right thing on Windows.
  
    Args:
      outdir: The directory to delete
  
    Raises:
      CalledProcessError - if the delete operation fails on Windows
      OSError - if the delete operation fails on Linux
    
docstring: Removes the given directory
  On Unix systems, this just runs shutil.rmtree, but on Windows, this doesn't
  work when the directory contains junctions (as does our SDK installer).
  Therefore, on Windows, it runs rmdir /S /Q as a shell command.  This always
  does the right thing on Windows.
  
  The directory to delete
  
  if the delete operation fails on Windows
  OSError - if the delete operation fails on Linux
docstring_tokens: Removes the given directory On Unix systems this just runs shutil . rmtree but on Windows this doesn ' t work when the directory contains junctions ( as does our SDK installer ) . Therefore on Windows it runs rmdir / S / Q as a shell command . This always does the right thing on Windows . The directory to delete if the delete operation fails on Windows OSError - if the delete operation fails on Linux
code: def RemoveDir(outdir):
    '''Removes the given directory
  
    On Unix systems, this just runs shutil.rmtree, but on Windows, this doesn't
    work when the directory contains junctions (as does our SDK installer).
    Therefore, on Windows, it runs rmdir /S /Q as a shell command.  This always
    does the right thing on Windows.
  
    Args:
      outdir: The directory to delete
  
    Raises:
      CalledProcessError - if the delete operation fails on Windows
      OSError - if the delete operation fails on Linux
    '''
  
    annotator.Print('Removing %s' % outdir)
    if sys.platform == 'win32':
      subprocess.check_call(['rmdir /S /Q', outdir], shell=True)
    else:
      shutil.rmtree(outdir)
code_tokens: def RemoveDir ( outdir ) : annotator . Print ( 'Removing %s' % outdir ) if sys . platform == 'win32' : subprocess . check_call ( [ 'rmdir /S /Q' , outdir ] , shell = True ) else : shutil . rmtree ( outdir )
short_docstring: Removes the given directory
  On Unix systems, this just runs shutil.rmtree, but on Windows, this doesn't
  work when the directory contains junctions (as does our SDK installer).
short_docstring_tokens: Removes the given directory On Unix systems this just runs shutil . rmtree but on Windows this doesn ' t work when the directory contains junctions ( as does our SDK installer ) .
comment: '''Removes the given directory
  
    On Unix systems, this just runs shutil.rmtree, but on Windows, this doesn't
    work when the directory contains junctions (as does our SDK installer).
    Therefore, on Windows, it runs rmdir /S /Q as a shell command.  This always
    does the right thing on Windows.
  
    Args:
      outdir: The directory to delete
  
    Raises:
      CalledProcessError - if the delete operation fails on Windows
      OSError - if the delete operation fails on Linux
    '''