#NEWLINE# @ staticmethod #NEWLINE# def _retry_after( retry_time ) : #NEWLINE# #INDENT# delay = int ( math . ceil ( ( retry_time - time . time ( ) ) ) ) #NEWLINE# retry_after = ( delay if ( delay > 0 ) else 0 ) #NEWLINE# headers = { #NEWLINE# #INDENT# 'Retry-After' : ( '%d' % delay ) , #NEWLINE# #UNINDENT# } #NEWLINE# return headers