diff --git a/jenkinsapi/job.py b/jenkinsapi/job.py index 9d1bffc8..3fc0967e 100644 --- a/jenkinsapi/job.py +++ b/jenkinsapi/job.py @@ -627,7 +627,7 @@ def modify_scm_url(self, new_source_url, old_source_url=None): def get_config_xml_url(self): return "%s/config.xml" % self.baseurl - def update_config(self, config, full_response=False, encoding='utf-8'): + def update_config(self, config, full_response=False, encoding="utf-8"): """ Update the config.xml to the job Also refresh the ElementTree object since the config has changed @@ -637,7 +637,9 @@ def update_config(self, config, full_response=False, encoding='utf-8'): """ url = self.get_config_xml_url() config = str(config) # cast unicode in case of Python 2 - response = self.jenkins.requester.post_url(url, params={}, data=config.encode(encoding)) + response = self.jenkins.requester.post_url( + url, params={}, data=config.encode(encoding) + ) self._element_tree = ET.fromstring(config) if full_response: