Skip to content

Commit ac80548

Browse files
committed
fix syntax error
1 parent 02f8931 commit ac80548

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

asyncutils/queues.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ def __repr__(self): return f'<password-protected queue at {id(self):#x}>'
111111
@property
112112
def maxsize(self): return maxsize
113113
def task_done(self):
114+
nonlocal U
114115
if U == 0: raise ValueError('task_done() called too many times')
115-
nonlocal U; U -= 1
116+
U -= 1
116117
if U == 0: E.set()
117118
async def join(self):
118119
if U > 0: await E.wait()

0 commit comments

Comments
 (0)