useless-with-lock / W2101#
'%s()' directly created in 'with' has no effect
Used when a new lock instance is created by using with statement which has no effect. Instead, an existing instance should be used to acquire lock.
# This is a placeholder for correct code for this message.
You can help us make the doc better by contributing !
Created by the threading checker.