Skip to content

Commit

Permalink
another attempt on formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHenson committed Nov 7, 2023
1 parent 67f530a commit 743ad37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions awscrt/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class CrossProcessLock(NativeResource):
"""
Class representing an exclusive cross-process lock, scoped by `lock_scope_name`
Recommended usage is to either explicitly call acquire() followed by release() when the lock is no longer required, or use this in a 'with' statement.
acquire() will throw a RuntimeError with AWS_MUTEX_CALLER_NOT_OWNER as the error code, if the lock could not be acquired.
Expand All @@ -40,7 +40,7 @@ def acquire(self):
_awscrt.s3_cross_process_lock_acquire(self._binding)

def __enter__(self):
self.acquire()
self.acquire()

def release(self):
_awscrt.s3_cross_process_lock_release(self._binding)
Expand Down

0 comments on commit 743ad37

Please sign in to comment.