(e)
Return the stderr field (if any) associated with the event.
Return the stderr field (if any) associated with the event.
Return the stderr field ( if any ) associated with the event .
def get_event_stderr(e):
  """Return the stderr field (if any) associated with the event."""
  if _API_VERSION == google_v2_versions.V2ALPHA1:

    return e.get('details', {}).get('stderr')

  elif _API_VERSION == google_v2_versions.V2BETA:

    for event_type in ['containerStopped']:
      if event_type in e:
        return e[event_type].get('stderr')

  else:
    assert False, 'Unexpected version: {}'.format(_API_VERSION)
def get_event_stderr ( e ) : if _API_VERSION == google_v2_versions . V2ALPHA1 : return e . get ( 'details' , { } ) . get ( 'stderr' ) elif _API_VERSION == google_v2_versions . V2BETA : for event_type in [ 'containerStopped' ] : if event_type in e : return e [ event_type ] . get ( 'stderr' ) else : assert False , 'Unexpected version: {}' . format ( _API_VERSION )