tools/flags/generate_unexpire_flags.py
def gen_flags_fragment(prog_name, mstone):
  """Generates a .inc file containing flag definitions.

  This creates a C++ source fragment defining flags, which are bound to the
  features described in gen_features_impl().
  """
  # Note: The exact format of the flag name (temporary-unexpire-flags-m{m}) is
  # depended on by a hack in UnexpiredMilestonesFromStorage(). See
  # https://crbug.com/1101828 for more details.
  fragment = """
    {{"temporary-unexpire-flags-m{m}",
     "Temporarily unexpire M{m} flags.",
     "Temporarily unexpire flags that expired as of M{m}. These flags will be"
     " removed soon.",
     kOsAll | flags_ui::kFlagInfrastructure,
     FEATURE_VALUE_TYPE(flags::kUnexpireFlagsM{m})}},
"""

  return '\n'.join([fragment.format(m=m) for m in recent_mstones(mstone)])
Generates a .inc file containing flag definitions.

  This creates a C++ source fragment defining flags, which are bound to the
  features described in gen_features_impl().
  
Generates a .inc file containing flag definitions.
This creates a C++ source fragment defining flags, which are bound to the
features described in gen_features_impl().
Generates a . inc file containing flag definitions . This creates a C ++ source fragment defining flags which are bound to the features described in gen_features_impl () .
def gen_flags_fragment(prog_name, mstone):
  fragment = """
    {{"temporary-unexpire-flags-m{m}",
     "Temporarily unexpire M{m} flags.",
     "Temporarily unexpire flags that expired as of M{m}. These flags will be"
     " removed soon.",
     kOsAll | flags_ui::kFlagInfrastructure,
     FEATURE_VALUE_TYPE(flags::kUnexpireFlagsM{m})}},
"""
  return '\n'.join([fragment.format(m=m) for m in recent_mstones(mstone)])
def gen_flags_fragment ( prog_name , mstone ) : fragment = """
    {{"temporary-unexpire-flags-m{m}",
     "Temporarily unexpire M{m} flags.",
     "Temporarily unexpire flags that expired as of M{m}. These flags will be"
     " removed soon.",
     kOsAll | flags_ui::kFlagInfrastructure,
     FEATURE_VALUE_TYPE(flags::kUnexpireFlagsM{m})}},
""" return '\n' . join ( [ fragment . format ( m = m ) for m in recent_mstones ( mstone ) ] )
Generates a .inc file containing flag definitions.
Generates a . inc file containing flag definitions .
"""Generates a .inc file containing flag definitions.

  This creates a C++ source fragment defining flags, which are bound to the
  features described in gen_features_impl().
  """ # Note: The exact format of the flag name (temporary-unexpire-flags-m{m}) is # depended on by a hack in UnexpiredMilestonesFromStorage(). See # https://crbug.com/1101828 for more details.
prog_name
mstone