chore: noqa SIM115
This commit is contained in:
parent
6221ae4d38
commit
82ebe88c38
@ -49,7 +49,7 @@ class WordExtractor(BaseExtractor):
|
|||||||
|
|
||||||
self.web_path = self.file_path
|
self.web_path = self.file_path
|
||||||
# TODO: use a better way to handle the file
|
# TODO: use a better way to handle the file
|
||||||
self.temp_file = tempfile.NamedTemporaryFile() # S701
|
self.temp_file = tempfile.NamedTemporaryFile() # noqa: SIM115
|
||||||
self.temp_file.write(r.content)
|
self.temp_file.write(r.content)
|
||||||
self.file_path = self.temp_file.name
|
self.file_path = self.temp_file.name
|
||||||
elif not os.path.isfile(self.file_path):
|
elif not os.path.isfile(self.file_path):
|
||||||
|
Loading…
Reference in New Issue
Block a user