diff options
| author | Martin <MartinBasti@users.noreply.github.com> | 2021-11-03 22:49:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-03 22:49:04 +0100 |
| commit | de307ccf20c69ef1cfba05c000de19ec2407b5cd (patch) | |
| tree | 84cc363659730c3819ca9710ecf4bce6f67954a9 /doc/conf.py | |
| parent | be9e34722f521608a24a0d00e6991913bbad835a (diff) | |
| download | pylint-git-de307ccf20c69ef1cfba05c000de19ec2407b5cd.tar.gz | |
Inspection for `with threading.Lock():` (#5245)
Using `with threading.Lock():` directly has no effect.
Correct usage is:
```
lock = threading.Lock()
with lock:
...
```
This applies for:
* threading.Lock
* threading.RLock
* threading.Condition
* threading.Semaphore
* threading.BoundedSemaphore
Signed-off-by: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'doc/conf.py')
0 files changed, 0 insertions, 0 deletions
