#NEWLINE# def _StatusHelper( self , project , clean_counter , sem ) : #NEWLINE# #INDENT# 'Obtains the status for a specific project.\n\n    Obtains the status for a project, redirecting the output to\n    the specified object. It will release the semaphore\n    when done.\n\n    Args:\n      project: Project to get status of.\n      clean_counter: Counter for clean projects.\n      sem: Semaphore, will call release() when complete.\n      output: Where to output the status.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# state = project . PrintWorkTreeStatus ( ) #NEWLINE# if ( state == 'CLEAN' ) : #NEWLINE# #INDENT# next ( clean_counter ) #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# sem . release ( )