parameters: (self, flagname, flag_values, other_flag_values=None)
docstring: Create a DuplicateFlagError.
  
      Args:
        flagname: Name of the flag being redefined.
        flag_values: FlagValues object containing the first definition of
            flagname.
        other_flag_values: If this argument is not None, it should be the
            FlagValues object where the second definition of flagname occurs.
            If it is None, we assume that we're being called when attempting
            to create the flag a second time, and we use the module calling
            this one as the source of the second definition.
docstring_summary: Create a DuplicateFlagError.
docstring_tokens: Create a DuplicateFlagError .
function: def __init__(self, flagname, flag_values, other_flag_values=None):
      """Create a DuplicateFlagError.
  
      Args:
        flagname: Name of the flag being redefined.
        flag_values: FlagValues object containing the first definition of
            flagname.
        other_flag_values: If this argument is not None, it should be the
            FlagValues object where the second definition of flagname occurs.
            If it is None, we assume that we're being called when attempting
            to create the flag a second time, and we use the module calling
            this one as the source of the second definition.
      """
      self.flagname = flagname
      first_module = flag_values.FindModuleDefiningFlag(
          flagname, default='<unknown>')
      if other_flag_values is None:
        second_module = _GetCallingModule()
      else:
        second_module = other_flag_values.FindModuleDefiningFlag(
            flagname, default='<unknown>')
      msg = "The flag '%s' is defined twice. First from %s, Second from %s" % (
          self.flagname, first_module, second_module)
      DuplicateFlag.__init__(self, msg)
function_tokens: def __init__ ( self , flagname , flag_values , other_flag_values = None ) : self . flagname = flagname first_module = flag_values . FindModuleDefiningFlag ( flagname , default = '<unknown>' ) if other_flag_values is None : second_module = _GetCallingModule ( ) else : second_module = other_flag_values . FindModuleDefiningFlag ( flagname , default = '<unknown>' ) msg = "The flag '%s' is defined twice. First from %s, Second from %s" % ( self . flagname , first_module , second_module ) DuplicateFlag . __init__ ( self , msg )