grr/server/grr_response_server/db.py
def _ValidateTimeRange(timerange):
  """Parses a timerange argument and always returns non-None timerange."""
  if len(timerange) != 2:
    raise ValueError("Timerange should be a sequence with 2 items.")

  (start, end) = timerange
  precondition.AssertOptionalType(start, rdfvalue.RDFDatetime)
  precondition.AssertOptionalType(end, rdfvalue.RDFDatetime)
Parses a timerange argument and always returns non-None timerange.
Parses a timerange argument and always returns non-None timerange.
Parses a timerange argument and always returns non - None timerange .
def _ValidateTimeRange(timerange):
  if len(timerange) != 2:
    raise ValueError("Timerange should be a sequence with 2 items.")
  (start, end) = timerange
  precondition.AssertOptionalType(start, rdfvalue.RDFDatetime)
  precondition.AssertOptionalType(end, rdfvalue.RDFDatetime)
def _ValidateTimeRange ( timerange ) : if len ( timerange ) != 2 : raise ValueError ( "Timerange should be a sequence with 2 items." ) ( start , end ) = timerange precondition . AssertOptionalType ( start , rdfvalue . RDFDatetime ) precondition . AssertOptionalType ( end , rdfvalue . RDFDatetime )
Parses a timerange argument and always returns non-None timerange.
Parses a timerange argument and always returns non - None timerange .
"""Parses a timerange argument and always returns non-None timerange."""
timerange