Skip to content

fix: improve file locking mechanism with atomic creation

c9b63b0
Select commit
Loading
Failed to load commit list.
Closed

fix: improve file locking mechanism with atomic creation #455

fix: improve file locking mechanism with atomic creation
c9b63b0
Select commit
Loading
Failed to load commit list.
qiniu-x / pylint failed Dec 5, 2024 in 36s

pylint found 2 issues related to your changes

This is the detailed log.

If you have any questions about this comment, feel free to raise an issue here.

Annotations

Check warning on line 151 in qiniu/http/regions_provider.py

See this annotation in the file changed.

@qiniu-x qiniu-x / pylint

qiniu/http/regions_provider.py#L151

Consider explicitly re-raising using 'except FileExistsError as exc' and 'raise FileAlreadyLocked('File {0} already locked'.format(self._origin_file)) from exc' (raise-missing-from)

Check warning on line 151 in qiniu/http/regions_provider.py

See this annotation in the file changed.

@qiniu-x qiniu-x / pylint

qiniu/http/regions_provider.py#L151

Formatting a regular string which could be an f-string (consider-using-f-string)