#NEWLINE# def clean( ) : #NEWLINE# #INDENT# python_dirs = [ ] #NEWLINE# for ( root , dirs , files ) in os . walk ( PROJECT_ROOT ) : #NEWLINE# #INDENT# python_dir = any ( ( f . endswith ( '.py' ) for f in files ) ) #NEWLINE# if python_dir : #NEWLINE# #INDENT# python_dirs . append ( root ) #NEWLINE# #UNINDENT# #UNINDENT# for d in files : #NEWLINE# #INDENT# local ( ( 'bash -c "autopep8 -i %s/*.py"' % d ) )