Commit 03e6d24
committed
Prevent false positive linter warning in BSDSocket._iter_sockets()
Change logic to prevent:
testinfra/modules/socket.py:347:26: E0606: Possibly using variable 'protocol' before assignment (possibly-used-before-assignment)1 parent dca7b05 commit 03e6d24
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
| 342 | + | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| |||
0 commit comments