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

Commit

Permalink
Merge pull request #5 from italovalcy/issue_3
Browse files Browse the repository at this point in the history
Disable pylint check on abstract class instantiated due to upstream issue
  • Loading branch information
italovalcy authored Nov 30, 2021
2 parents 863f9fc + b010d36 commit ab9d50c
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 ab9d50c

Please sign in to comment.