#NEWLINE# def __init__( self , app = None , db = None , directory = 'migrations' , **kwargs ) : #NEWLINE# #INDENT# self . configure_callbacks = [ ] #NEWLINE# self . db = db #NEWLINE# self . directory = directory #NEWLINE# if ( ( app is not None ) and ( db is not None ) ) : #NEWLINE# #INDENT# self . init_app ( app , db , directory , ** app )