Skip to content

Commit 45aff4d

Browse files
committed
Other test
1 parent 56d5dab commit 45aff4d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pysonar_scanner/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def is_valid(self) -> bool:
4646
return False
4747

4848
def open(self, mode: OpenBinaryMode) -> typing.BinaryIO:
49-
return open(self.filepath, mode=mode)
49+
return self.filepath.open(mode=mode)
5050

5151

5252
class Cache:

src/pysonar_scanner/jre.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __download_jre(self, jre: JRE) -> Optional[pathlib.Path]:
103103
cache_file = self.cache.get_file(jre.filename, jre.sha256)
104104
cache_file.filepath.unlink(missing_ok=True)
105105

106-
with open(cache_file.filepath, mode="wb") as f:
106+
with cache_file.open(mode="wb") as f:
107107
if jre.download_url is not None:
108108
self.api.download_file_from_url(jre.download_url, f)
109109
elif jre.id is not None:

0 commit comments

Comments
 (0)