#NEWLINE# def __init__( self , time_to_freeze_str , tz_offset , ignore , tick ) : #NEWLINE# #INDENT# if ( time_to_freeze_str is None ) : #NEWLINE# #INDENT# time_to_freeze = datetime . datetime . utcnow ( ) #NEWLINE# #UNINDENT# if isinstance ( tz_offset , datetime . datetime ) : #NEWLINE# #INDENT# time_to_freeze = time_to_freeze_str #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( time_to_freeze_str , datetime . date ) : #NEWLINE# #INDENT# time_to_freeze = datetime . datetime . combine ( time_to_freeze_str , datetime . time ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# time_to_freeze = parser . parse ( time_to_freeze_str ) #NEWLINE# #UNINDENT# #UNINDENT# time_to_freeze = convert_to_timezone_naive ( time_to_freeze ) #NEWLINE# self . time_to_freeze = time_to_freeze #NEWLINE# self . tz_offset = tz_offset #NEWLINE# self . ignore = tuple ( ignore ) #NEWLINE# self . tick = tick #NEWLINE# self . undo_changes = [ ] #NEWLINE# self . modules_at_start = set ( )