net/data/gencerts/openssl_conf.py
def ensure_property_name_not_duplicated(self, name):
    """Raises an exception of there is more than 1 property named |name|."""
    count = 0
    for prop in self.properties:
      if prop.name == name:
        count += 1
    if count > 1:
      raise Exception('Duplicate property: %s' % (name))
Raises an exception of there is more than 1 property named |name|.
Raises an exception of there is more than 1 property named |name|.
Raises an exception of there is more than 1 property named |name| .
def ensure_property_name_not_duplicated(self, name):
    count = 0
    for prop in self.properties:
      if prop.name == name:
        count += 1
    if count > 1:
      raise Exception('Duplicate property: %s' % (name))
def ensure_property_name_not_duplicated ( self , name ) : count = 0 for prop in self . properties : if prop . name == name : count += 1 if count > 1 : raise Exception ( 'Duplicate property: %s' % ( name ) )
Raises an exception of there is more than 1 property named |name|.
Raises an exception of there is more than 1 property named |name| .
"""Raises an exception of there is more than 1 property named |name|."""
self
name