diff --git a/aiorwlock/__init__.py b/aiorwlock/__init__.py index f885980..4f762e3 100644 --- a/aiorwlock/__init__.py +++ b/aiorwlock/__init__.py @@ -271,5 +271,6 @@ def writer(self) -> _WriterLock: writer_lock = writer def __repr__(self) -> str: - return ''.format(self.reader_lock.__repr__(), - self.writer_lock.__repr__()) + rl = self.reader_lock.__repr__() + wl = self.writer_lock.__repr__() + return ''.format(rl, wl)