useless-with-lock / W2101#
Message emitted:
'%s()' directly created in 'with' has no effect
Description:
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.
Correct code:
# This is a placeholder for correct code for this message.
Additional details:
You can help us make the doc better by contributing !
Created by the threading checker.