#NEWLINE# def migration( self ) : #NEWLINE# #INDENT# 'Tries to load the actual migration module' #NEWLINE# full_name = self . full_name ( ) #NEWLINE# try : #NEWLINE# #INDENT# migration = sys . modules [ full_name ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# migration = __import__ ( full_name , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , [ 'Migration' ] ) #NEWLINE# #UNINDENT# except ImportError as e : #NEWLINE# #INDENT# raise exceptions . UnknownMigration ( self , sys . exc_info ( ) ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# raise exceptions . BrokenMigration ( self , sys . exc_info ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# migration . _ = ( lambda x : x ) #NEWLINE# migration . datetime = datetime_utils #NEWLINE# return migration