File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
5252class Cache :
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments