parameters: (self, endtime)
docstring: Convenience for _communicate when computing timeouts.
docstring_summary: Convenience for _communicate when computing timeouts.
docstring_tokens: Convenience for _communicate when computing timeouts .
function: def _remaining_time(self, endtime):
          """Convenience for _communicate when computing timeouts."""
          if endtime is None:
              return None
          else:
              return endtime - _time()
function_tokens: def _remaining_time ( self , endtime ) : if endtime is None : return None else : return endtime - _time ( )