#NEWLINE# def __init__( self , path = None , format = None , is_tmp = False ) : #NEWLINE# #INDENT# if ( format is None ) : #NEWLINE# #INDENT# format = get_default_format ( ) #NEWLINE# #UNINDENT# if ( not self ) : #NEWLINE# #INDENT# if ( not is_tmp ) : #NEWLINE# #INDENT# raise Exception ( 'path or is_tmp must be set' ) #NEWLINE# #UNINDENT# path = os . path . join ( tempfile . gettempdir ( ) , ( 'luigi-tmp-%09d' % random . randint ( 0 , 999999999 ) ) ) #NEWLINE# #UNINDENT# super ( LocalTarget , self ) . __init__ ( path ) #NEWLINE# self . format = format #NEWLINE# self . is_tmp = is_tmp