#NEWLINE# def acquire_semaphore( conn , semname , limit , timeout = 10 ) : #NEWLINE# #INDENT# now = time . time ( ) #NEWLINE# return acquire_semaphore_lua ( conn , [ semname ] , [ ( now - timeout ) , limit , now , str ( uuid . uuid4 ( ) ) ] )