summaryrefslogtreecommitdiff
path: root/examples/how_to/get_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/how_to/get_config.py')
-rw-r--r--examples/how_to/get_config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/how_to/get_config.py b/examples/how_to/get_config.py
index 088dafb..72b6635 100644
--- a/examples/how_to/get_config.py
+++ b/examples/how_to/get_config.py
@@ -1,10 +1,12 @@
"""
An example of how to use JenkinsAPI to fetch the config XML of a job.
"""
+from __future__ import print_function
+
from jenkinsapi.jenkins import Jenkins
J = Jenkins('http://localhost:8080')
jobName = 'create_fwrgmkbbzk'
config = J[jobName].get_config()
-print config
+print(config)