Removed print()

This commit is contained in:
Pranav Chaudhari 2022-02-26 16:32:22 +05:30 committed by GitHub
parent 70572c7a89
commit 165aea8578
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,7 +85,6 @@ class FileLock(object):
"""
if not self.is_locked:
self.acquire()
print(f"{self.file_name.split('/')[-1]} locked")
return self
def __exit__(self, type, value, traceback):
@ -94,7 +93,6 @@ class FileLock(object):
"""
if self.is_locked:
self.release()
print(f"{self.file_name.split('/')[-1]} unlocked")
def __del__(self):
"""Make sure that the FileLock instance doesn't leave a lockfile