tools/flags/list_flags.py
def keep_never_expires(flags):
  """Filter flags to contain only flags that never expire.

  >>> keep_never_expires([{'expiry_milestone': -1}, {'expiry_milestone': 2}])
  [{'expiry_milestone': -1}]
  """
  return [f for f in flags if f['expiry_milestone'] == -1]
Filter flags to contain only flags that never expire.

  >>> keep_never_expires([{'expiry_milestone': -1}, {'expiry_milestone': 2}])
  [{'expiry_milestone': -1}]
  
Filter flags to contain only flags that never expire.
Filter flags to contain only flags that never expire .
def keep_never_expires(flags):
  return [f for f in flags if f['expiry_milestone'] == -1]
def keep_never_expires ( flags ) : return [ f for f in flags if f [ 'expiry_milestone' ] == - 1 ]
Filter flags to contain only flags that never expire.
Filter flags to contain only flags that never expire .
"""Filter flags to contain only flags that never expire.

  >>> keep_never_expires([{'expiry_milestone': -1}, {'expiry_milestone': 2}])
  [{'expiry_milestone': -1}]
  """
flags