def _process_timestamp(ts):
 if (ts is None):
  return None
 elif (ts.tzinfo is None):
  return dt_util.UTC.localize(ts)
 else:
  return dt_util.as_utc(ts)

def _process_timestamp ( ts ) : if ( ts is None ) : return None elif ( ts . tzinfo is None ) : return dt_util . UTC . localize ( ts ) else : return dt_util . as_utc ( ts )
process a timestamp into datetime object .