#NEWLINE# def __init__( self , get_time = time . time , thread_sleep = InterruptibleSleep , layout = None ) : #NEWLINE# #INDENT# self . get_time = get_time #NEWLINE# self . thread_sleep = thread_sleep #NEWLINE# self . start_time = get_time ( ) #NEWLINE# self . transferred = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . prior_block = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . totals = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . throttles = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . last_rotate = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . rotate_mutex = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if layout : #NEWLINE# #INDENT# self . AddThrottles ( layout )