Did I find the right examples for you? yes no

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/p/y/python-veracity-0.0.11/veracity/builder.py   python-veracity(Download)
 
    # Parse the configuration file
    config = common.parse_config(args.config, not args.no_config, parser.error,
                                 repos=args.repo, envs=[args.env] if args.env else None)
    if not config.repos:

src/p/y/python-veracity-0.0.11/veracity/poller.py   python-veracity(Download)
 
    # Parse the configuration file
    config = common.parse_config(args.config, not args.no_config,
                                 parser.error, repos=args.repo)
    if not config.repos:

src/p/y/python-veracity-0.0.11/veracity/test/test_common.py   python-veracity(Download)
import tempfile
 
from veracity.common import Config, parse_config, find_config, configure_logging
 
from veracity.test import FILES
    def test_parse_config_valid(self):
        """Verify a config can be parsed."""
        config = parse_config(os.path.join(FILES, 'setup.cfg'), False, self.error)
        self.assertEqual(['python-veracity-test'], config.repos)
 
    def test_parse_config_found(self):
        """Verify a config can be found and parsed."""
        os.chdir(FILES)
        config = parse_config(None, True, self.error)