def getint(self, key, default=''):
        """Return the value of the specified option as integer.

        If the specified option can not be converted to an integer, a
        `ConfigurationError` exception is raised.

        Valid default input is a string or an int. Returns an int.
        """
        value = self.get(key, default)
        try:
            return _getint(value)
        except __HOLE__:
            raise ConfigurationError(
                    _('[%(section)s] %(entry)s: expected integer,'
                      ' got %(value)s', section=self.name, entry=key,
                      value=repr(value)))
dataset/ETHPy150Open edgewall/trac/trac/config.py/Section.getint