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.

Created by threading checker