#NEWLINE# def main( ) : #NEWLINE# #INDENT# argparser = argparse . ArgumentParser ( ) #NEWLINE# argparser . add_argument ( 'modules' , type = str , nargs = '+' ) #NEWLINE# argparser . add_argument ( '--force-insert' , action = 'store_true' ) #NEWLINE# args = argparser . parse_args ( ) #NEWLINE# block_marker = ( '# ' + ( '=' * 77 ) ) #NEWLINE# with contextlib . closing ( cStringIO . StringIO ( ) ) as s : #NEWLINE# #INDENT# print ( block_marker , file = s ) #NEWLINE# print ( '# CONTENTS' , file = s ) #NEWLINE# print ( '#' , ( '-' * 77 ) , file = s ) #NEWLINE# contents_signature = s . getvalue ( ) #NEWLINE# #UNINDENT# modules = sorted ( args . modules ) #NEWLINE# for m in modules : #NEWLINE# #INDENT# if ( not process_module ( m , contents_signature , args , block_marker ) ) : #NEWLINE# #INDENT# return ( - 1 )