Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/d/a/daikon-1.51/daikon/config.py   daikon(Download)
                    os.path.expanduser('~/.daikon.conf'), 'daikon.conf']):
            msg = 'No config file found!'
            raise exceptions.ConfigError(msg)
        elif not self.config_parser.has_section(self.cluster()):
            msg = 'No cluster section defined for this cluster!'
            raise exceptions.ConfigError(msg)
 
        if not self.config_parser.get(self.cluster(), 'host'):
            raise exceptions.ConfigError('No default host defined!')
        elif hasattr(self.arguments, 'host') and self.arguments.host:
            self._hsot = self.arguments.host
 
        if not self.config_parser.get(self.cluster(), 'port'):
            raise exceptions.ConfigError('No default port defined!')
        elif hasattr(self.arguments, 'port') and self.arguments.port:
            self._port = self.arguments.port
 
        if not self.config_parser.get(self.cluster(), 'replicas'):
            raise exceptions.ConfigError('No default replicas defined!')
        elif hasattr(self.arguments, 'replicas') and self.arguments.replicas:
            self._replicas = self.arguments.replicas

src/d/a/daikon-HEAD/daikon/config.py   daikon(Download)
                    os.path.expanduser('~/.daikon.conf'), 'daikon.conf']):
            msg = 'No config file found!'
            raise exceptions.ConfigError(msg)
        elif not self.config_parser.has_section(self.cluster()):
            msg = 'No cluster section defined for this cluster!'
            raise exceptions.ConfigError(msg)
 
        if not self.config_parser.get(self.cluster(), 'host'):
            raise exceptions.ConfigError('No default host defined!')
        elif hasattr(self.arguments, 'host') and self.arguments.host:
            self._hsot = self.arguments.host
 
        if not self.config_parser.get(self.cluster(), 'port'):
            raise exceptions.ConfigError('No default port defined!')
        elif hasattr(self.arguments, 'port') and self.arguments.port:
            self._port = self.arguments.port
 
        if not self.config_parser.get(self.cluster(), 'replicas'):
            raise exceptions.ConfigError('No default replicas defined!')
        elif hasattr(self.arguments, 'replicas') and self.arguments.replicas:
            self._replicas = self.arguments.replicas