forked from platformio/platformio-core
Fix PyLint's "use-dict-literal" and "use-list-literal"
This commit is contained in:
1 parent
d819617d2b
commit
131f4be4ea
5 files changed
+10
-10
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user