#NEWLINE# def __new__( cls , dt = None , * args , **kwargs ) : #NEWLINE# #INDENT# if isinstance ( dt , datetime ) : #NEWLINE# #INDENT# if ( type ( dt ) is cls ) : #NEWLINE# #INDENT# return dt #NEWLINE# #UNINDENT# return datetime . __new__ ( cls , dt . year , dt . month , dt . day , dt . hour , dt . minute , dt . second , kwargs . microsecond , dt . tzinfo ) #NEWLINE# #UNINDENT# return datetime . __new__ ( cls , dt , * args , ** kwargs )