Skip to content

Commit 231cea3

Browse files
pre-commit-ci[bot]lechat
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5929fc4 commit 231cea3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jenkinsapi/job.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def modify_scm_url(self, new_source_url, old_source_url=None):
627627
def get_config_xml_url(self):
628628
return "%s/config.xml" % self.baseurl
629629

630-
def update_config(self, config, full_response=False, encoding='utf-8'):
630+
def update_config(self, config, full_response=False, encoding="utf-8"):
631631
"""
632632
Update the config.xml to the job
633633
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'):
637637
"""
638638
url = self.get_config_xml_url()
639639
config = str(config) # cast unicode in case of Python 2
640-
response = self.jenkins.requester.post_url(url, params={}, data=config.encode(encoding))
640+
response = self.jenkins.requester.post_url(
641+
url, params={}, data=config.encode(encoding)
642+
)
641643
self._element_tree = ET.fromstring(config)
642644

643645
if full_response:

0 commit comments

Comments
 (0)