Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
Disable pylint check on abstract class instantiated for known issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Italo Valcy committed Nov 30, 2021
1 parent 863f9fc commit b010d36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backends/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def _get_destination(self, namespace):
def _write_to_file(self, filename, box):
dotted_filename = str(filename).replace('/', '.')
lockfile = f'{self.lock_path}/{dotted_filename}.lock'
# pylint: disable=abstract-class-instantiated
lock = FileLock(lockfile)
with lock:
with open(filename, 'wb') as save_file:
Expand All @@ -74,6 +75,7 @@ def _write_to_file(self, filename, box):
def _load_from_file(self, filename):
dotted_filename = str(filename).replace('/', '.')
lockfile = f'{self.lock_path}/{dotted_filename}.lock'
# pylint: disable=abstract-class-instantiated
lock = FileLock(lockfile)
with lock:
try:
Expand Down

0 comments on commit b010d36

Please sign in to comment.