Fix PyLint's "use-dict-literal" and "use-list-literal"

This commit is contained in:
Ivan Kravets committed 2021-08-28 13:14:40 +03:00
1 parent d819617d2b
commit 131f4be4ea
5 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -62,9 +62,9 @@ class LockFile(object):
else:
raise LockFileExists
self._fp = open(
self._fp = open( # pylint: disable=consider-using-with
self._lock_path, mode="w", encoding="utf8"
) # pylint: disable=consider-using-with
)
try:
if LOCKFILE_CURRENT_INTERFACE == LOCKFILE_INTERFACE_FCNTL:
fcntl.flock(self._fp.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)