lint fixes

This commit is contained in:
Devaev Maxim
2021-07-08 16:52:51 +03:00
parent 43aa435b81
commit 7c68b6b406
4 changed files with 5 additions and 4 deletions

View File

@@ -539,7 +539,7 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
def __set_image_complete(self, name: str, flag: bool) -> None:
path = os.path.join(self.__meta_path, name + ".complete")
if flag:
open(path, "w").close()
open(path, "w").close() # pylint: disable=consider-using-with
else:
if os.path.exists(path):
os.remove(path)