diff options
author | Wayne Warren <waynr+launchpad@sdf.org> | 2016-08-05 06:38:23 -0700 |
---|---|---|
committer | Thanh Ha <thanh.ha@linuxfoundation.org> | 2016-09-14 15:39:36 -0400 |
commit | e93f4a5f5a87939de50c02ab15dec07ac80e7526 (patch) | |
tree | 8f8e6e1ffae00bcba4179ca0b8eb1712ba78c01f /jenkins_jobs/config.py | |
parent | e1de6f22ffa444a28381701dbb800b1b39de0892 (diff) | |
download | python-jenkins-job-builder-e93f4a5f5a87939de50c02ab15dec07ac80e7526.tar.gz python-jenkins-job-builder-e93f4a5f5a87939de50c02ab15dec07ac80e7526.tar.xz python-jenkins-job-builder-e93f4a5f5a87939de50c02ab15dec07ac80e7526.zip |
Convert multiline strings to concatenated single-quote.
Change-Id: Ic0c1be9ca037b67695136583837702d3ec4d42a8
Diffstat (limited to 'jenkins_jobs/config.py')
-rw-r--r-- | jenkins_jobs/config.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/jenkins_jobs/config.py b/jenkins_jobs/config.py index 9bbdbb74..a22c48af 100644 --- a/jenkins_jobs/config.py +++ b/jenkins_jobs/config.py @@ -159,8 +159,9 @@ class JJBConfig(object): logger.debug("Reading config from {0}".format(config_filename)) config_fp = io.open(config_filename, 'r', encoding='utf-8') else: - raise JJBConfigException("""A valid configuration file is required. - \n{0} is not valid.""".format(config_filename)) + raise JJBConfigException( + "A valid configuration file is required. " + "\n{0} is not valid.".format(config_filename)) return config_fp @@ -171,10 +172,10 @@ class JJBConfig(object): # check the ignore_cache setting if config.has_option('jenkins', 'ignore_cache'): - logging.warn('''ignore_cache option should be moved to the - [job_builder] section in the config file, the one - specified in the [jenkins] section will be ignored in - the future''') + logging.warn("ignore_cache option should be moved to the " + "[job_builder] section in the config file, the " + "one specified in the [jenkins] section will be " + "ignored in the future") self.ignore_cache = config.getboolean('jenkins', 'ignore_cache') elif config.has_option('job_builder', 'ignore_cache'): self.ignore_cache = config.getboolean('job_builder', |