#NEWLINE# def update_license_file( args , top_level , year = datetime . now ( UTC ) . year ) : #NEWLINE# #INDENT# '\n    Update the LICENSE file to include the current year.\n\n    :param list args: The arguments passed to the script.\n    :param FilePath top_level: The top-level of the flocker repository.\n    ' #NEWLINE# license_template = top_level . child ( 'admin' ) . child ( 'LICENSE.template' ) #NEWLINE# with license_template . open ( ) as input_file : #NEWLINE# #INDENT# with top_level . child ( 'LICENSE' ) . open ( 'w' ) as output_file : #NEWLINE# #INDENT# output_file . write ( input_file . read ( ) . format ( current_year = year ) )