Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 7, 2025
1 parent 6935ac2 commit fce5a5d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jenkinsapi/utils/jenkins_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,11 @@ def update_war(self):

def update_config(self):
from jenkinsapi_tests import systests
file = os.path.join(os.path.dirname(systests.__file__), "jenkins_home.tar.gz")


file = os.path.join(
os.path.dirname(systests.__file__), "jenkins_home.tar.gz"
)

with open(file, "rb") as f:
with tarfile.open(fileobj=f, mode="r:gz") as tarball:
tarball.extractall(path=self.jenkins_home)
Expand Down

0 comments on commit fce5a5d

Please sign in to comment.