summaryrefslogtreecommitdiffstats
path: root/jenkins_jobs/config.py
diff options
context:
space:
mode:
authorSorin Sbarnea <ssbarnea@redhat.com>2016-11-20 20:12:16 +0000
committerSorin Sbarnea <ssbarnea@redhat.com>2017-03-12 19:43:33 +0000
commit8a7d77c180101cce183ada4928a53aa21f00ebe6 (patch)
treed35b2ca3f0a034d8fc73734d950f2cda64a2a5cc /jenkins_jobs/config.py
parenta5eb235881c2848d258fb06eae4a60a1b83edd4b (diff)
downloadpython-jenkins-job-builder-8a7d77c180101cce183ada4928a53aa21f00ebe6.tar.gz
python-jenkins-job-builder-8a7d77c180101cce183ada4928a53aa21f00ebe6.tar.xz
python-jenkins-job-builder-8a7d77c180101cce183ada4928a53aa21f00ebe6.zip
Removed some deprecation warnings and enabled py35 on tox.
Change-Id: Icc5b28c4636b542a10502b7b1d2d2dc2028cc166 Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Diffstat (limited to 'jenkins_jobs/config.py')
-rw-r--r--jenkins_jobs/config.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/jenkins_jobs/config.py b/jenkins_jobs/config.py
index 19d13b82..cf172815 100644
--- a/jenkins_jobs/config.py
+++ b/jenkins_jobs/config.py
@@ -113,8 +113,8 @@ class JJBConfig(object):
if config_file_required:
raise JJBConfigException(CONFIG_REQUIRED_MESSAGE)
else:
- logger.warn("Config file, {0}, not found. Using default "
- "config values.".format(conf))
+ logger.warning("Config file, {0}, not found. Using "
+ "default config values.".format(conf))
if config_fp is not None:
if PY2:
@@ -172,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.warning("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',